diff options
author | Bill Wendling <isanbard@gmail.com> | 2010-03-12 02:00:43 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2010-03-12 02:00:43 +0000 |
commit | dd3fe94336ef3804a255c2f48db67abb824f812d (patch) | |
tree | 251925a4b9d9ef6d01888e9672345f64955d5550 /llvm/lib/Target/PowerPC/PPCISelLowering.cpp | |
parent | 47bef1a8a2f5ef13fe97f6da3058d0704e83e1b7 (diff) | |
download | bcm5719-llvm-dd3fe94336ef3804a255c2f48db67abb824f812d.tar.gz bcm5719-llvm-dd3fe94336ef3804a255c2f48db67abb824f812d.zip |
The same situation that effected ARM effects PPC with regards to placing the
LSDA into the TEXT section. We need to generate non-lazy pointers to it on
Mach-O. However, the object the NLP points to may be local to the translation
unit. If so, then the NLP needs to have the value of that object specified
instead of "0", which the linker interprets as "external".
llvm-svn: 98325
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index aeaa7c6816d..106e779af87 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -13,9 +13,10 @@ #include "PPCISelLowering.h" #include "PPCMachineFunctionInfo.h" +#include "PPCPerfectShuffle.h" #include "PPCPredicates.h" #include "PPCTargetMachine.h" -#include "PPCPerfectShuffle.h" +#include "PPCTargetObjectFile.h" #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/VectorExtras.h" #include "llvm/CodeGen/CallingConvLower.h" @@ -59,11 +60,11 @@ cl::desc("enable preincrement load/store generation on PPC (experimental)"), static TargetLoweringObjectFile *CreateTLOF(const PPCTargetMachine &TM) { if (TM.getSubtargetImpl()->isDarwin()) - return new TargetLoweringObjectFileMachO(); + return new PPCMachOTargetObjectFile(); + return new TargetLoweringObjectFileELF(); } - PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM) : TargetLowering(TM, CreateTLOF(TM)), PPCSubTarget(*TM.getSubtargetImpl()) { |