diff options
author | Dan Gohman <gohman@apple.com> | 2009-01-15 16:58:17 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-01-15 16:58:17 +0000 |
commit | a0c429eecdba4926d61591f84e73c8d473715e3a (patch) | |
tree | 3001c878835f6f2c17fae20fcac7bf27388a29db /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 0275b138ada11dd70e02f6fc56829304ab7a0559 (diff) | |
download | external_llvm-a0c429eecdba4926d61591f84e73c8d473715e3a.zip external_llvm-a0c429eecdba4926d61591f84e73c8d473715e3a.tar.gz external_llvm-a0c429eecdba4926d61591f84e73c8d473715e3a.tar.bz2 |
More consts on TargetLowering references.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62262 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 3688a13..744ea00 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -141,8 +141,8 @@ namespace llvm { const TargetMachine *TM, MachineBasicBlock *BB, bool Fast) { - TargetLowering &TLI = IS->getTargetLowering(); - + const TargetLowering &TLI = IS->getTargetLowering(); + if (Fast) return createFastDAGScheduler(IS, DAG, TM, BB, Fast); if (TLI.getSchedulingPreference() == TargetLowering::SchedulingForLatency) @@ -399,7 +399,7 @@ static bool IsPossiblyOverwrittenArgumentOfTailCall(SDValue Op, /// CheckDAGForTailCallsAndFixThem - This Function looks for CALL nodes in the /// DAG and fixes their tailcall attribute operand. static void CheckDAGForTailCallsAndFixThem(SelectionDAG &DAG, - TargetLowering& TLI) { + const TargetLowering& TLI) { SDNode * Ret = NULL; SDValue Terminator = DAG.getRoot(); |