[llvm-commits] [llvm] r71147 - /llvm/trunk/include/llvm/CodeGen/MachineFunction.h
Jakob Stoklund Olesen
stoklund at 2pi.dk
Wed May 6 21:41:26 PDT 2009
Author: stoklund
Date: Wed May 6 23:41:26 2009
New Revision: 71147
URL: http://llvm.org/viewvc/llvm-project?rev=71147&view=rev
Log:
Add const modifiers.
Modified:
llvm/trunk/include/llvm/CodeGen/MachineFunction.h
Modified: llvm/trunk/include/llvm/CodeGen/MachineFunction.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineFunction.h?rev=71147&r1=71146&r2=71147&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineFunction.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineFunction.h Wed May 6 23:41:26 2009
@@ -176,7 +176,7 @@
/// 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];
More information about the llvm-commits
mailing list