diff options
author | Chris Lattner <sabre@nondot.org> | 2005-11-17 18:55:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-11-17 18:55:48 +0000 |
commit | 3570cf456b31ac08cb91106f0d8b41f1619f41c5 (patch) | |
tree | 7c2bc57e53cef4c9d8969156fc171d94e3329a94 /llvm/lib/Target/PowerPC/PPC.h | |
parent | 8f8ed28a64583fcf3a0ab81c1f175cb349666852 (diff) | |
download | bcm5719-llvm-3570cf456b31ac08cb91106f0d8b41f1619f41c5.tar.gz bcm5719-llvm-3570cf456b31ac08cb91106f0d8b41f1619f41c5.zip |
add an option to generate completely non-pic code, corresponding to what
gcc -static produces on PPC. This is used for building kexts and other things.
With this, materializing the address of a global looks like:
lis r2, ha16(L_H$non_lazy_ptr)
la r3, lo16(L_H$non_lazy_ptr)(r2)
we're still emitting stubs for functions, which is wrong. That is next.
llvm-svn: 24399
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPC.h')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPC.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPC.h b/llvm/lib/Target/PowerPC/PPC.h index d19e57a3ba0..1f40a54b67f 100644 --- a/llvm/lib/Target/PowerPC/PPC.h +++ b/llvm/lib/Target/PowerPC/PPC.h @@ -33,6 +33,7 @@ FunctionPass *createDarwinAsmPrinter(std::ostream &OS, TargetMachine &TM); FunctionPass *createAIXAsmPrinter(std::ostream &OS, TargetMachine &TM); extern bool PICEnabled; +extern bool PPCGenerateStaticCode; extern PPCTargetEnum PPCTarget; } // end namespace llvm; |