diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-02-22 20:19:42 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-02-22 20:19:42 +0000 |
commit | 4c1aa866578f7a358407a22fe55b454f52a24325 (patch) | |
tree | f5c6f24b1fedfb42a7024b7ba4c0aa5f21280c8b /include | |
parent | 0420f2aaf9551a10e2060d076de2fcdd7b316370 (diff) | |
download | external_llvm-4c1aa866578f7a358407a22fe55b454f52a24325.zip external_llvm-4c1aa866578f7a358407a22fe55b454f52a24325.tar.gz external_llvm-4c1aa866578f7a358407a22fe55b454f52a24325.tar.bz2 |
- Added option -relocation-model to set relocation model. Valid values include static, pic,
dynamic-no-pic, and default.
PPC and x86 default is dynamic-no-pic for Darwin, pic for others.
- Removed options -enable-pic and -ppc-static.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26315 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetMachine.h | 17 | ||||
-rw-r--r-- | include/llvm/Target/TargetOptions.h | 6 |
2 files changed, 17 insertions, 6 deletions
diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h index d13a4ed..5a58951 100644 --- a/include/llvm/Target/TargetMachine.h +++ b/include/llvm/Target/TargetMachine.h @@ -34,6 +34,16 @@ class PassManager; class Pass; class IntrinsicLowering; +// Relocation model types. +namespace Reloc { + enum Model { + Default, + Static, + PIC, + DynamicNoPIC + }; +} + //===----------------------------------------------------------------------===// /// /// TargetMachine - Primary interface to the complete machine description for @@ -135,6 +145,13 @@ public: virtual const TargetSchedInfo *getSchedInfo() const { return 0; } virtual const SparcV9RegInfo *getRegInfo() const { return 0; } + /// getRelocationModel - Returns the code generation relocation model. The + /// choices are static, PIC, and dynamic-no-pic, and target default. + static Reloc::Model getRelocationModel(); + + /// setRelocationModel - Sets the code generation relocation model. + static void setRelocationModel(Reloc::Model Model); + /// CodeGenFileType - These enums are meant to be passed into /// addPassesToEmitFile to indicate what type of file to emit. enum CodeGenFileType { diff --git a/include/llvm/Target/TargetOptions.h b/include/llvm/Target/TargetOptions.h index 31fdeb8..e208eba 100644 --- a/include/llvm/Target/TargetOptions.h +++ b/include/llvm/Target/TargetOptions.h @@ -40,12 +40,6 @@ namespace llvm { /// produce results that are "less precise" than IEEE allows. This includes /// use of X86 instructions like FSIN and FCOS instead of libcalls. extern bool UnsafeFPMath; - - /// PICEnabled - This flag is enabled when the -enable-pic flag is specified - /// on the command line. When this flag is on, the code generator produces - /// position independant code. - extern bool PICEnabled; - } // End llvm namespace #endif |