mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-23 11:04:49 +00:00
Move lengthy conditional down 1 level per review comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40878 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6a30811d5c
commit
27f92be8b7
@ -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; }
|
||||
|
@ -114,11 +114,7 @@ X86_64TargetMachine::X86_64TargetMachine(const Module &M, const std::string &FS)
|
||||
X86TargetMachine::X86TargetMachine(const Module &M, const std::string &FS,
|
||||
bool is64Bit)
|
||||
: Subtarget(M, FS, is64Bit),
|
||||
DataLayout(Subtarget.is64Bit() ?
|
||||
std::string("e-p:64:64-f64:32:64-i64:32:64-f80:128:128") :
|
||||
Subtarget.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")),
|
||||
DataLayout(Subtarget.getDataLayout()),
|
||||
FrameInfo(TargetFrameInfo::StackGrowsDown,
|
||||
Subtarget.getStackAlignment(), Subtarget.is64Bit() ? -8 : -4),
|
||||
InstrInfo(*this), JITInfo(*this), TLInfo(*this) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user