aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/PowerPC/PPCTargetMachine.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-11 20:42:37 +0000
committerChris Lattner <sabre@nondot.org>2009-08-11 20:42:37 +0000
commitd9236ecabe1bd73e89ce5cdb12da8a1bfdc67a0d (patch)
treedcfe9e4849884a56ad41a319e64541f9de2b4a66 /lib/Target/PowerPC/PPCTargetMachine.cpp
parentc4b2d0485d2431b880fcaafe3a2a271cd33f51bb (diff)
downloadexternal_llvm-d9236ecabe1bd73e89ce5cdb12da8a1bfdc67a0d.tar.gz
external_llvm-d9236ecabe1bd73e89ce5cdb12da8a1bfdc67a0d.tar.bz2
external_llvm-d9236ecabe1bd73e89ce5cdb12da8a1bfdc67a0d.zip
pass the TargetTriple down from each target ctor to the
LLVMTargetMachine ctor. It is currently unused. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78711 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCTargetMachine.cpp')
-rw-r--r--lib/Target/PowerPC/PPCTargetMachine.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Target/PowerPC/PPCTargetMachine.cpp b/lib/Target/PowerPC/PPCTargetMachine.cpp
index 251be7679b..d08c81957b 100644
--- a/lib/Target/PowerPC/PPCTargetMachine.cpp
+++ b/lib/Target/PowerPC/PPCTargetMachine.cpp
@@ -29,13 +29,12 @@ extern "C" void LLVMInitializePowerPCTarget() {
const TargetAsmInfo *PPCTargetMachine::createTargetAsmInfo() const {
if (Subtarget.isDarwin())
return new PPCDarwinTargetAsmInfo(*this);
- else
- return new PPCLinuxTargetAsmInfo(*this);
+ return new PPCLinuxTargetAsmInfo(*this);
}
-PPCTargetMachine::PPCTargetMachine(const Target&T, const std::string &TT,
+PPCTargetMachine::PPCTargetMachine(const Target &T, const std::string &TT,
const std::string &FS, bool is64Bit)
- : LLVMTargetMachine(T),
+ : LLVMTargetMachine(T, TT),
Subtarget(TT, FS, is64Bit),
DataLayout(Subtarget.getTargetDataString()), InstrInfo(*this),
FrameInfo(*this, is64Bit), JITInfo(*this, is64Bit), TLInfo(*this),