summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86TargetMachine.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-06-23 17:54:54 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-06-23 17:54:54 +0000
commit3a0c5e52ff3ea056329fbbacd6f7e2bf281bf3ee (patch)
treedffc31c86618b0e6da27453ece2c5af479e68c7f /llvm/lib/Target/X86/X86TargetMachine.cpp
parent080d8fd26763389a3337d638c9429d0a6a094d38 (diff)
downloadbcm5719-llvm-3a0c5e52ff3ea056329fbbacd6f7e2bf281bf3ee.tar.gz
bcm5719-llvm-3a0c5e52ff3ea056329fbbacd6f7e2bf281bf3ee.zip
Remove TargetOptions.h dependency from X86Subtarget.
llvm-svn: 133726
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetMachine.cpp')
-rw-r--r--llvm/lib/Target/X86/X86TargetMachine.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86TargetMachine.cpp b/llvm/lib/Target/X86/X86TargetMachine.cpp
index 74833291dc7..0b85469976c 100644
--- a/llvm/lib/Target/X86/X86TargetMachine.cpp
+++ b/llvm/lib/Target/X86/X86TargetMachine.cpp
@@ -117,7 +117,7 @@ X86_64TargetMachine::X86_64TargetMachine(const Target &T, const std::string &TT,
X86TargetMachine::X86TargetMachine(const Target &T, const std::string &TT,
const std::string &FS, bool is64Bit)
: LLVMTargetMachine(T, TT),
- Subtarget(TT, FS, is64Bit),
+ Subtarget(TT, FS, is64Bit, StackAlignment),
FrameLowering(*this, Subtarget),
ELFWriterInfo(is64Bit, true) {
DefRelocModel = getRelocationModel();
@@ -182,6 +182,10 @@ X86TargetMachine::X86TargetMachine(const Target &T, const std::string &TT,
// Finally, if we have "none" as our PIC style, force to static mode.
if (Subtarget.getPICStyle() == PICStyles::None)
setRelocationModel(Reloc::Static);
+
+ // default to hard float ABI
+ if (FloatABIType == FloatABI::Default)
+ FloatABIType = FloatABI::Hard;
}
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud