diff options
author | Dale Johannesen <dalej@apple.com> | 2007-08-06 21:48:35 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2007-08-06 21:48:35 +0000 |
commit | d1822ea7d17db608048ea20492174a57475b6162 (patch) | |
tree | 8c1f9de2d425f3f5fbdd5aa3285d06a15a19b24e /llvm/lib/Target/X86/X86Subtarget.h | |
parent | 75169a82d649a99c1d7b2ac0a7fd63aa448503d4 (diff) | |
download | bcm5719-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.h | 5 |
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; } |