aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-21 01:34:56 +0000
committerDan Gohman <gohman@apple.com>2010-04-21 01:34:56 +0000
commitf0757b0edc1ef3d1998485d3f74cadaa3f7180a0 (patch)
tree0033a00ee9950286fde22d96e7572f00e76349f2 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parentaf5097537c4599096d3f4b98a9fcff07c622d7f2 (diff)
downloadexternal_llvm-f0757b0edc1ef3d1998485d3f74cadaa3f7180a0.zip
external_llvm-f0757b0edc1ef3d1998485d3f74cadaa3f7180a0.tar.gz
external_llvm-f0757b0edc1ef3d1998485d3f74cadaa3f7180a0.tar.bz2
Add more const qualifiers on TargetMachine and friends.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101977 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 7c2c528..b9a42f4 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -164,7 +164,7 @@ MachineBasicBlock *TargetLowering::EmitInstrWithCustomInserter(MachineInstr *MI,
// SelectionDAGISel code
//===----------------------------------------------------------------------===//
-SelectionDAGISel::SelectionDAGISel(TargetMachine &tm, CodeGenOpt::Level OL) :
+SelectionDAGISel::SelectionDAGISel(const TargetMachine &tm, CodeGenOpt::Level OL) :
MachineFunctionPass(&ID), TM(tm), TLI(*tm.getTargetLowering()),
FuncInfo(new FunctionLoweringInfo(TLI)),
CurDAG(new SelectionDAG(tm, *FuncInfo)),