Fix build breakage. :(
authorChris Lattner <sabre@nondot.org>
Sun, 9 Sep 2001 19:52:23 +0000 (19:52 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 9 Sep 2001 19:52:23 +0000 (19:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@511 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/InstrSelection.h
include/llvm/CodeGen/MachineInstr.h
lib/CodeGen/MachineInstr.cpp

index a175f823891e136e71bbe439d7d9bd4d3861ad0b..0a8a92706d0c4975c322ac43fff6cfe5326d7d02 100644 (file)
@@ -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
 // 
index 80755ab06739957a299a8a4fb8d99ce43f1bf719..b8e7ec5c6af5a90402f2325d881cb13813e5e1e6 100644 (file)
@@ -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);
 
 
 //**************************************************************************/
index 4a632587b626d503c752d4bc91e9aeaae3bd5272..a53d29c6571bd8fd6bdb009a4f2c1f2bcda8f74c 100644 (file)
@@ -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;
     }