Const correctness fixes
[oota-llvm.git] / lib / CodeGen / MachineFunction.cpp
index 83567a4f761fbc8fa8dbc0ad375f9647524adb04..85bf4b6a272702e3aba13f4f0a40f7530aedb4b6 100644 (file)
@@ -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";