aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-09-09 19:52:23 +0000
committerChris Lattner <sabre@nondot.org>2001-09-09 19:52:23 +0000
commit56786d268feeb6d0e895b6c4cba60139285c47d6 (patch)
treea1af89e073332636fb1352c225e2073d462c6a34 /lib/CodeGen/MachineInstr.cpp
parent2e5309304a06b5f8b7356af806141972d4df827b (diff)
Fix build breakage. :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@511 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineInstr.cpp')
-rw-r--r--lib/CodeGen/MachineInstr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp
index 4a632587b6..a53d29c657 100644
--- a/lib/CodeGen/MachineInstr.cpp
+++ b/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;
}