summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86Subtarget.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-10 20:47:30 +0000
committerChris Lattner <sabre@nondot.org>2009-07-10 20:47:30 +0000
commite2f524f176df37bca2dea1ade78e0c303ed3c766 (patch)
tree01222a50dc534e3c42a67233d7ff22050f3738aa /llvm/lib/Target/X86/X86Subtarget.h
parent028e6158c256e4bc0fec39de0f44aceeff57a317 (diff)
downloadbcm5719-llvm-e2f524f176df37bca2dea1ade78e0c303ed3c766.tar.gz
bcm5719-llvm-e2f524f176df37bca2dea1ade78e0c303ed3c766.zip
add a couple of predicates to test for "stub style pic in PIC mode" and "stub style pic in dynamic-no-pic" mode.
llvm-svn: 75273
Diffstat (limited to 'llvm/lib/Target/X86/X86Subtarget.h')
-rw-r--r--llvm/lib/Target/X86/X86Subtarget.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86Subtarget.h b/llvm/lib/Target/X86/X86Subtarget.h
index e789a56b2a0..6509f04e33a 100644
--- a/llvm/lib/Target/X86/X86Subtarget.h
+++ b/llvm/lib/Target/X86/X86Subtarget.h
@@ -184,10 +184,14 @@ public:
bool isPICStyleSet() const { return PICStyle != PICStyles::None; }
bool isPICStyleGOT() const { return PICStyle == PICStyles::GOT; }
- bool isPICStyleStub() const { return PICStyle == PICStyles::Stub; }
bool isPICStyleRIPRel() const { return PICStyle == PICStyles::RIPRel; }
+
+ bool isPICStyleStubPIC(const TargetMachine &TM) const;
+ bool isPICStyleStubNoDynamic(const TargetMachine &TM) const;
+ bool isPICStyleStubAny() const { return PICStyle == PICStyles::Stub; }
- /// getDarwinVers - Return the darwin version number, 8 = tiger, 9 = leopard.
+ /// getDarwinVers - Return the darwin version number, 8 = Tiger, 9 = Leopard,
+ /// 10 = Snow Leopard, etc.
unsigned getDarwinVers() const { return DarwinVers; }
/// isLinux - Return true if the target is "Linux".
OpenPOWER on IntegriCloud