summaryrefslogtreecommitdiffstats
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
commit57de997efffcbf4358ebd26d8b1c21844128560c (patch)
treeaa9ee919c8cae8fe71674f30996b3eece566459e
parentfacf074632706fdde2f3e7989cfe21ae81ada3e9 (diff)
downloadbcm5719-llvm-57de997efffcbf4358ebd26d8b1c21844128560c.tar.gz
bcm5719-llvm-57de997efffcbf4358ebd26d8b1c21844128560c.zip
Fix build breakage. :(
llvm-svn: 511
-rw-r--r--llvm/include/llvm/CodeGen/InstrSelection.h5
-rw-r--r--llvm/include/llvm/CodeGen/MachineInstr.h2
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp6
3 files changed, 4 insertions, 9 deletions
diff --git a/llvm/include/llvm/CodeGen/InstrSelection.h b/llvm/include/llvm/CodeGen/InstrSelection.h
index a175f823891..0a8a92706d0 100644
--- a/llvm/include/llvm/CodeGen/InstrSelection.h
+++ b/llvm/include/llvm/CodeGen/InstrSelection.h
@@ -53,11 +53,6 @@ extern bool ThisIsAChainRule (int eruleno);
bool SelectInstructionsForMethod (Method* method,
TargetMachine &Target);
-
-// Debugging function to print the generated instructions
-void PrintMachineInstructions (Method* method);
-
-
//---------------------------------------------------------------------------
// Function: FoldGetElemChain
//
diff --git a/llvm/include/llvm/CodeGen/MachineInstr.h b/llvm/include/llvm/CodeGen/MachineInstr.h
index 80755ab0673..b8e7ec5c6af 100644
--- a/llvm/include/llvm/CodeGen/MachineInstr.h
+++ b/llvm/include/llvm/CodeGen/MachineInstr.h
@@ -470,7 +470,7 @@ ostream& operator<<(ostream& os, const MachineInstr& minstr);
ostream& operator<<(ostream& os, const MachineOperand& mop);
-void PrintMachineInstructions (const Method *const method);
+void PrintMachineInstructions (const Method *method);
//**************************************************************************/
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;
}
OpenPOWER on IntegriCloud