summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-07-01 20:19:02 +0000
committerEric Christopher <echristo@gmail.com>2014-07-01 20:19:02 +0000
commit5234995e80b42a31c7b246fc22060156e93c8587 (patch)
tree80c466c975662f1acaf5ff94b5a5d46c80628e49 /llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
parentf1bd22dfa4ef383c4a6951a3d5e10c38b8e86fa1 (diff)
downloadbcm5719-llvm-5234995e80b42a31c7b246fc22060156e93c8587.tar.gz
bcm5719-llvm-5234995e80b42a31c7b246fc22060156e93c8587.zip
Move the subtarget dependent features from SystemZTargetMachine
down to the subtarget. Add an initialization routine to assist. llvm-svn: 212124
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZISelLowering.cpp')
-rw-r--r--llvm/lib/Target/SystemZ/SystemZISelLowering.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp b/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
index da65226b0f9..f6c73c3df1c 100644
--- a/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
@@ -80,9 +80,9 @@ static MachineOperand earlyUseOperand(MachineOperand Op) {
return Op;
}
-SystemZTargetLowering::SystemZTargetLowering(SystemZTargetMachine &tm)
- : TargetLowering(tm, new TargetLoweringObjectFileELF()),
- Subtarget(*tm.getSubtargetImpl()) {
+SystemZTargetLowering::SystemZTargetLowering(const TargetMachine &tm)
+ : TargetLowering(tm, new TargetLoweringObjectFileELF()),
+ Subtarget(tm.getSubtarget<SystemZSubtarget>()) {
MVT PtrVT = getPointerTy();
// Set up the register classes.
OpenPOWER on IntegriCloud