aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86ISelLowering.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2010-02-21 20:28:15 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2010-02-21 20:28:15 +0000
commitdf708fc4cc64bd61e4db81be32bd726c6a1ec4bc (patch)
treee6e75df25a11b3b6fe5dfcaa0259b97c573e4283 /lib/Target/X86/X86ISelLowering.cpp
parent75d3968b90380ca7ade8abf8e685cf7542cd5970 (diff)
downloadexternal_llvm-df708fc4cc64bd61e4db81be32bd726c6a1ec4bc.zip
external_llvm-df708fc4cc64bd61e4db81be32bd726c6a1ec4bc.tar.gz
external_llvm-df708fc4cc64bd61e4db81be32bd726c6a1ec4bc.tar.bz2
It turned out that we failed to emit proper symbol stubs on non-x86/darwin for ages (we emitted a reference to a stub, but no stub was emitted). The code inside x86-32/macho target objfile lowering should actually be the generic one - move it there.
This (I really, really hope) should fix EH issues on ppc/darwin and arm/darwin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96755 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86ISelLowering.cpp')
-rw-r--r--lib/Target/X86/X86ISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp
index 4c40fe1..750087a 100644
--- a/lib/Target/X86/X86ISelLowering.cpp
+++ b/lib/Target/X86/X86ISelLowering.cpp
@@ -73,7 +73,7 @@ static TargetLoweringObjectFile *createTLOF(X86TargetMachine &TM) {
case X86Subtarget::isDarwin:
if (TM.getSubtarget<X86Subtarget>().is64Bit())
return new X8664_MachoTargetObjectFile();
- return new X8632_MachoTargetObjectFile();
+ return new TargetLoweringObjectFileMachO();
case X86Subtarget::isELF:
if (TM.getSubtarget<X86Subtarget>().is64Bit())
return new X8664_ELFTargetObjectFile(TM);