summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-10-01 21:36:28 +0000
committerEric Christopher <echristo@gmail.com>2014-10-01 21:36:28 +0000
commitf6ed33e7fa2f001f3f27060b96952dd9bc0dd2c5 (patch)
treef9d264bbc31140acf8613b650242cf798435c814 /llvm/lib/Target/PowerPC/PPCISelLowering.cpp
parentb8a4ecb5d96ed1a03954995f5fd3772e8aff0bac (diff)
downloadbcm5719-llvm-f6ed33e7fa2f001f3f27060b96952dd9bc0dd2c5.tar.gz
bcm5719-llvm-f6ed33e7fa2f001f3f27060b96952dd9bc0dd2c5.zip
constify the TargetMachine argument used in the subtarget and
lowering constructors. llvm-svn: 218832
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index e0396fdfe46..c884c0cece9 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -64,7 +64,7 @@ static TargetLoweringObjectFile *createTLOF(const Triple &TT) {
return new PPC64LinuxTargetObjectFile();
}
-PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM)
+PPCTargetLowering::PPCTargetLowering(const PPCTargetMachine &TM)
: TargetLowering(TM, createTLOF(Triple(TM.getTargetTriple()))),
Subtarget(*TM.getSubtargetImpl()) {
setPow2SDivIsCheap();
OpenPOWER on IntegriCloud