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 | 1d05cb47a94bb5639b690519c6027447791e06f7 (patch) | |
tree | f0af396ca34ac0b18e55a136a36a34dff70b0e1c /lib/Target/PowerPC/PPC.h | |
parent | 1df747867cc1e7d37447bc3072e55e380c6720e8 (diff) | |
download | external_llvm-1d05cb47a94bb5639b690519c6027447791e06f7.tar.gz external_llvm-1d05cb47a94bb5639b690519c6027447791e06f7.tar.bz2 external_llvm-1d05cb47a94bb5639b690519c6027447791e06f7.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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24399 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPC.h')
-rw-r--r-- | lib/Target/PowerPC/PPC.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPC.h b/lib/Target/PowerPC/PPC.h index d19e57a3ba..1f40a54b67 100644 --- a/lib/Target/PowerPC/PPC.h +++ b/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; |