aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-15 04:33:49 +0000
committerDan Gohman <gohman@apple.com>2010-04-15 04:33:49 +0000
commit1eb7a9cc529c07b6dba2a2c205ef3a9b055e1b15 (patch)
treef2d8e82324f62acca48f90c0535719daafc22c17 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parenta0ed803d12a5a2e1fc25c7da388b1b67072cfa77 (diff)
downloadexternal_llvm-1eb7a9cc529c07b6dba2a2c205ef3a9b055e1b15.zip
external_llvm-1eb7a9cc529c07b6dba2a2c205ef3a9b055e1b15.tar.gz
external_llvm-1eb7a9cc529c07b6dba2a2c205ef3a9b055e1b15.tar.bz2
Add more const qualifiers for LLVM IR pointers in CodeGen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101342 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 7618166..d320b65 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -195,7 +195,7 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) {
assert((!EnableFastISelAbort || EnableFastISel) &&
"-fast-isel-abort requires -fast-isel");
- Function &Fn = *mf.getFunction();
+ const Function &Fn = *mf.getFunction();
const TargetInstrInfo &TII = *TM.getInstrInfo();
const TargetRegisterInfo &TRI = *TM.getRegisterInfo();