summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86Subtarget.h
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2007-08-06 21:48:35 +0000
committerDale Johannesen <dalej@apple.com>2007-08-06 21:48:35 +0000
commitd1822ea7d17db608048ea20492174a57475b6162 (patch)
tree8c1f9de2d425f3f5fbdd5aa3285d06a15a19b24e /llvm/lib/Target/X86/X86Subtarget.h
parent75169a82d649a99c1d7b2ac0a7fd63aa448503d4 (diff)
downloadbcm5719-llvm-d1822ea7d17db608048ea20492174a57475b6162.tar.gz
bcm5719-llvm-d1822ea7d17db608048ea20492174a57475b6162.zip
Move lengthy conditional down 1 level per review comment.
llvm-svn: 40878
Diffstat (limited to 'llvm/lib/Target/X86/X86Subtarget.h')
-rw-r--r--llvm/lib/Target/X86/X86Subtarget.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86Subtarget.h b/llvm/lib/Target/X86/X86Subtarget.h
index 6240dc2715a..772f1431c92 100644
--- a/llvm/lib/Target/X86/X86Subtarget.h
+++ b/llvm/lib/Target/X86/X86Subtarget.h
@@ -143,6 +143,11 @@ public:
TargetType == isCygwin); }
bool isTargetCygwin() const { return TargetType == isCygwin; }
+ std::string getDataLayout() const { return
+ is64Bit() ? std::string("e-p:64:64-f64:32:64-i64:32:64-f80:128:128") :
+ isTargetDarwin() ? std::string("e-p:32:32-f64:32:64-i64:32:64-f80:128:128") :
+ std::string("e-p:32:32-f64:32:64-i64:32:64-f80:32:32"); }
+
bool isPICStyleSet() const { return PICStyle != PICStyle::None; }
bool isPICStyleGOT() const { return PICStyle == PICStyle::GOT; }
bool isPICStyleStub() const { return PICStyle == PICStyle::Stub; }
OpenPOWER on IntegriCloud