summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2009-05-07 04:41:26 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2009-05-07 04:41:26 +0000
commitd1604fde53ee3f52d5fa8776dee1cc284fc8e45f (patch)
tree47770f3c432657654c1ece96fa63b4e3ee988eba /llvm/include
parent5c633e38a8b1f0624d85eb2dcb59507727eece08 (diff)
downloadbcm5719-llvm-d1604fde53ee3f52d5fa8776dee1cc284fc8e45f.tar.gz
bcm5719-llvm-d1604fde53ee3f52d5fa8776dee1cc284fc8e45f.zip
Add const modifiers.
llvm-svn: 71147
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/CodeGen/MachineFunction.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineFunction.h b/llvm/include/llvm/CodeGen/MachineFunction.h
index 1c9bc61521f..a110e5846ac 100644
--- a/llvm/include/llvm/CodeGen/MachineFunction.h
+++ b/llvm/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];
OpenPOWER on IntegriCloud