summaryrefslogtreecommitdiff
path: root/lib/Target/X86/X86TargetMachine.cpp
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2014-04-01 18:15:34 +0000
committerYaron Keren <yaron.keren@gmail.com>2014-04-01 18:15:34 +0000
commitbec4ff578118714558294b7570e4c953d4e66268 (patch)
tree012375c4622dfe67773c06f714926d90c4126547 /lib/Target/X86/X86TargetMachine.cpp
parenteb8eac6be213dfb58bec16927f7289c3dc4d3eb3 (diff)
downloadllvm-bec4ff578118714558294b7570e4c953d4e66268.tar.gz
llvm-bec4ff578118714558294b7570e4c953d4e66268.tar.bz2
llvm-bec4ff578118714558294b7570e4c953d4e66268.tar.xz
isTargetWindows() renamed to isTargetKnownWindowsMSVC()
to reflect its current functionality. Based on Takumi NAKAMURA suggestion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205338 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86TargetMachine.cpp')
-rw-r--r--lib/Target/X86/X86TargetMachine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp
index 8c326227fb..6f09ccf0ce 100644
--- a/lib/Target/X86/X86TargetMachine.cpp
+++ b/lib/Target/X86/X86TargetMachine.cpp
@@ -39,7 +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.isTargetWindows() ||
+ if (ST.is64Bit() || ST.isTargetCygMing() || ST.isTargetKnownWindowsMSVC() ||
ST.isTargetNaCl())
Ret += "-i64:64";
else
@@ -60,7 +60,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.isTargetWindows()))
+ if (!ST.is64Bit() && (ST.isTargetCygMing() || ST.isTargetKnownWindowsMSVC()))
Ret += "-S32";
else
Ret += "-S128";