From 414832fea6de1c13f27ac9b6a38f693495791c26 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 26 Jul 2003 23:24:56 +0000 Subject: Const correctness fixes llvm-svn: 7349 --- llvm/lib/CodeGen/MachineFunction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/MachineFunction.cpp') diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 83567a4f761..85bf4b6a272 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -126,7 +126,7 @@ void MachineFunction::print(std::ostream &OS) const { getConstantPool()->print(OS); for (const_iterator BB = begin(); BB != end(); ++BB) { - BasicBlock *LBB = BB->getBasicBlock(); + const BasicBlock *LBB = BB->getBasicBlock(); OS << "\n" << LBB->getName() << " (" << (const void*)LBB << "):\n"; for (MachineBasicBlock::const_iterator I = BB->begin(); I != BB->end();++I){ OS << "\t"; -- cgit v1.2.3