diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2009-05-07 04:41:26 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2009-05-07 04:41:26 +0000 |
commit | 20683f94809ef74c11ea7ef6215405fd0dd18e3a (patch) | |
tree | 6af9104ede565cd69b8d41c4cab9b6b377a5e648 /include/llvm/CodeGen/MachineFunction.h | |
parent | 987a305f4a545d570d34c048c85fdb91f8670dd1 (diff) | |
download | external_llvm-20683f94809ef74c11ea7ef6215405fd0dd18e3a.zip external_llvm-20683f94809ef74c11ea7ef6215405fd0dd18e3a.tar.gz external_llvm-20683f94809ef74c11ea7ef6215405fd0dd18e3a.tar.bz2 |
Add const modifiers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71147 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineFunction.h')
-rw-r--r-- | include/llvm/CodeGen/MachineFunction.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h index 1c9bc61..a110e58 100644 --- a/include/llvm/CodeGen/MachineFunction.h +++ b/include/llvm/CodeGen/MachineFunction.h @@ -176,7 +176,7 @@ public: /// basic block can be found by using the MBB::getBlockNumber method, this /// method provides the inverse mapping. /// - MachineBasicBlock *getBlockNumbered(unsigned N) { + MachineBasicBlock *getBlockNumbered(unsigned N) const { assert(N < MBBNumbering.size() && "Illegal block number"); assert(MBBNumbering[N] && "Block was removed from the machine function!"); return MBBNumbering[N]; |