summaryrefslogtreecommitdiff
path: root/lib/Target/X86/X86TargetMachine.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-12-13 17:56:11 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-12-13 17:56:11 +0000
commit48c29270218ef69546884a8ba1d6e9a636724c48 (patch)
tree8c83af1cc35547afc26a39bc251f7baa902d7dee /lib/Target/X86/X86TargetMachine.cpp
parent7b3aa0356d935af1301cdf7f4a6cd928edeac4b7 (diff)
downloadllvm-48c29270218ef69546884a8ba1d6e9a636724c48.tar.gz
llvm-48c29270218ef69546884a8ba1d6e9a636724c48.tar.bz2
llvm-48c29270218ef69546884a8ba1d6e9a636724c48.tar.xz
Assume defaults to produce smaller datalayout strings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197249 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86TargetMachine.cpp')
-rw-r--r--lib/Target/X86/X86TargetMachine.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp
index 4d55b21f87..274808839c 100644
--- a/lib/Target/X86/X86TargetMachine.cpp
+++ b/lib/Target/X86/X86TargetMachine.cpp
@@ -47,9 +47,9 @@ static std::string computeDataLayout(const X86Subtarget &ST) {
// Some ABIs align 64 bit integers and doubles to 64 bits, others to 32.
if (ST.is64Bit() || ST.isTargetCygMing() || ST.isTargetWindows())
- Ret += "-f64:64:64-i64:64:64";
+ Ret += "-i64:64:64";
else
- Ret += "-f64:32:64-i64:32:64";
+ Ret += "-f64:32:64";
// Some ABIs align long double to 128 bits, others to 32.
if (ST.is64Bit() || ST.isTargetDarwin())
@@ -57,9 +57,6 @@ static std::string computeDataLayout(const X86Subtarget &ST) {
else
Ret += "-f80:32:32";
- // 128 bit floats (?) are aligned to 128 bits.
- Ret += "-f128:128:128";
-
// The registers can hold 8, 16, 32 or, in x86-64, 64 bits.
if (ST.is64Bit())
Ret += "-n8:16:32:64";