summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCSubtarget.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-06-12 22:50:10 +0000
committerEric Christopher <echristo@gmail.com>2014-06-12 22:50:10 +0000
commitf8c031fccfe4307b138468750801834520e11b2b (patch)
treebebc209aff41028c9de5a289c5093dbfd199c586 /llvm/lib/Target/PowerPC/PPCSubtarget.cpp
parent428c40352e0b3c9f0b1ca61d773d2ad230d3df17 (diff)
downloadbcm5719-llvm-f8c031fccfe4307b138468750801834520e11b2b.tar.gz
bcm5719-llvm-f8c031fccfe4307b138468750801834520e11b2b.zip
Move PPCTargetLowering off of the TargetMachine and onto the subtarget.
llvm-svn: 210852
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCSubtarget.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCSubtarget.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.cpp b/llvm/lib/Target/PowerPC/PPCSubtarget.cpp
index 6507caaafbb..cee54bd9910 100644
--- a/llvm/lib/Target/PowerPC/PPCSubtarget.cpp
+++ b/llvm/lib/Target/PowerPC/PPCSubtarget.cpp
@@ -75,12 +75,13 @@ PPCSubtarget &PPCSubtarget::initializeSubtargetDependencies(StringRef CPU,
}
PPCSubtarget::PPCSubtarget(const std::string &TT, const std::string &CPU,
- const std::string &FS, bool is64Bit,
- CodeGenOpt::Level OptLevel)
+ const std::string &FS, PPCTargetMachine &TM,
+ bool is64Bit, CodeGenOpt::Level OptLevel)
: PPCGenSubtargetInfo(TT, CPU, FS), IsPPC64(is64Bit), TargetTriple(TT),
OptLevel(OptLevel),
FrameLowering(initializeSubtargetDependencies(CPU, FS)),
- DL(getDataLayoutString(*this)), InstrInfo(*this), JITInfo(*this) {}
+ DL(getDataLayoutString(*this)), InstrInfo(*this), JITInfo(*this),
+ TLInfo(TM) {}
/// SetJITMode - This is called to inform the subtarget info that we are
/// producing code for the JIT.
OpenPOWER on IntegriCloud