diff options
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetMachine.cpp')
| -rw-r--r-- | llvm/lib/Target/X86/X86TargetMachine.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/Target/X86/X86TargetMachine.cpp b/llvm/lib/Target/X86/X86TargetMachine.cpp index 2165aefab54..64816e413c4 100644 --- a/llvm/lib/Target/X86/X86TargetMachine.cpp +++ b/llvm/lib/Target/X86/X86TargetMachine.cpp @@ -38,11 +38,6 @@ static std::string computeDataLayout(const X86Subtarget &ST) { if (ST.isTarget64BitILP32() || !ST.is64Bit()) Ret += "-p:32:32"; - // Objects on the stack ore aligned to 64 bits. - // FIXME: of any size? - if (ST.is64Bit()) - Ret += "-s:64"; - // Some ABIs align 64 bit integers and doubles to 64 bits, others to 32. if (ST.is64Bit() || ST.isTargetCygMing() || ST.isTargetWindows()) Ret += "-i64:64"; @@ -55,6 +50,10 @@ static std::string computeDataLayout(const X86Subtarget &ST) { else Ret += "-f80:32"; + // Objects on the stack ore aligned to 64 bits. + if (ST.is64Bit()) + Ret += "-s:64"; + // The registers can hold 8, 16, 32 or, in x86-64, 64 bits. if (ST.is64Bit()) Ret += "-n8:16:32:64"; |

