diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-09 03:15:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-09 03:15:51 +0000 |
commit | e4df756289b6d80dcfd67b9f97fd464f62fd4902 (patch) | |
tree | ac4e0ffb48d7397ab7a51ba1bdbffe364634e9b8 /lib/Target/X86/X86Subtarget.h | |
parent | b133a0aff77adf1787afe5d35cf140194c29d386 (diff) | |
download | llvm-e4df756289b6d80dcfd67b9f97fd464f62fd4902.tar.gz llvm-e4df756289b6d80dcfd67b9f97fd464f62fd4902.tar.bz2 llvm-e4df756289b6d80dcfd67b9f97fd464f62fd4902.tar.xz |
When in -static mode, force the PIC style to none. Doing this requires fixing
code which conflated RIPRel PIC with x86-64. Fix these to just check for X86-64
directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75092 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86Subtarget.h')
-rw-r--r-- | lib/Target/X86/X86Subtarget.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Target/X86/X86Subtarget.h b/lib/Target/X86/X86Subtarget.h index 0d1434f8e9..5a4f8c5e27 100644 --- a/lib/Target/X86/X86Subtarget.h +++ b/lib/Target/X86/X86Subtarget.h @@ -22,9 +22,14 @@ class Module; class GlobalValue; class TargetMachine; +/// PICStyles - The X86 backend supports a number of different styles of PIC. +/// namespace PICStyles { enum Style { - Stub, GOT, RIPRel, WinPIC, None + Stub, // Used on i386-darwin + GOT, // Used on many 32-bit unices. + RIPRel, // Used on X86-64 when not in -static mode. + None // Set when in -static mode (not PIC or DynamicNoPIC mode). }; } @@ -185,7 +190,6 @@ public: bool isPICStyleGOT() const { return PICStyle == PICStyles::GOT; } bool isPICStyleStub() const { return PICStyle == PICStyles::Stub; } bool isPICStyleRIPRel() const { return PICStyle == PICStyles::RIPRel; } - bool isPICStyleWinPIC() const { return PICStyle == PICStyles::WinPIC; } /// getDarwinVers - Return the darwin version number, 8 = tiger, 9 = leopard. unsigned getDarwinVers() const { return DarwinVers; } |