From 57de997efffcbf4358ebd26d8b1c21844128560c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 9 Sep 2001 19:52:23 +0000 Subject: Fix build breakage. :( llvm-svn: 511 --- llvm/lib/CodeGen/MachineInstr.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/CodeGen/MachineInstr.cpp') diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index 4a632587b62..a53d29c6571 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -339,20 +339,20 @@ ChooseRegOrImmed(Value* val, void -PrintMachineInstructions(Method* method) +PrintMachineInstructions(const Method* method) { cout << "\n" << method->getReturnType() << " \"" << method->getName() << "\"" << endl; for (Method::const_iterator BI = method->begin(); BI != method->end(); ++BI) { - BasicBlock* bb = *BI; + const BasicBlock* bb = *BI; cout << "\n" << (bb->hasName()? bb->getName() : "Label") << " (" << bb << ")" << ":" << endl; - MachineCodeForBasicBlock& mvec = bb->getMachineInstrVec(); + const MachineCodeForBasicBlock& mvec = bb->getMachineInstrVec(); for (unsigned i=0; i < mvec.size(); i++) cout << "\t" << *mvec[i] << endl; } -- cgit v1.2.3