mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
X86: simplify data layout calculation
X86Subtarget::isTargetCygMing || X86Subtarget::isTargetKnownWindowsMSVC is equivalent to all Windows environments. Simplify the check to isOSWindows. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210431 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
16aac741f6
commit
aa53e49779
@ -39,8 +39,7 @@ static std::string computeDataLayout(const X86Subtarget &ST) {
|
||||
Ret += "-p:32:32";
|
||||
|
||||
// Some ABIs align 64 bit integers and doubles to 64 bits, others to 32.
|
||||
if (ST.is64Bit() || ST.isTargetCygMing() || ST.isTargetKnownWindowsMSVC() ||
|
||||
ST.isTargetNaCl())
|
||||
if (ST.is64Bit() || ST.isOSWindows() || ST.isTargetNaCl())
|
||||
Ret += "-i64:64";
|
||||
else
|
||||
Ret += "-f64:32:64";
|
||||
@ -60,7 +59,7 @@ static std::string computeDataLayout(const X86Subtarget &ST) {
|
||||
Ret += "-n8:16:32";
|
||||
|
||||
// The stack is aligned to 32 bits on some ABIs and 128 bits on others.
|
||||
if (!ST.is64Bit() && (ST.isTargetCygMing() || ST.isTargetKnownWindowsMSVC()))
|
||||
if (!ST.is64Bit() && ST.isOSWindows())
|
||||
Ret += "-S32";
|
||||
else
|
||||
Ret += "-S128";
|
||||
|
Loading…
Reference in New Issue
Block a user