diff options
author | Chris Lattner <sabre@nondot.org> | 2001-09-09 19:52:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-09-09 19:52:23 +0000 |
commit | 56786d268feeb6d0e895b6c4cba60139285c47d6 (patch) | |
tree | a1af89e073332636fb1352c225e2073d462c6a34 | |
parent | 2e5309304a06b5f8b7356af806141972d4df827b (diff) | |
download | external_llvm-56786d268feeb6d0e895b6c4cba60139285c47d6.zip external_llvm-56786d268feeb6d0e895b6c4cba60139285c47d6.tar.gz external_llvm-56786d268feeb6d0e895b6c4cba60139285c47d6.tar.bz2 |
Fix build breakage. :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@511 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/CodeGen/InstrSelection.h | 5 | ||||
-rw-r--r-- | include/llvm/CodeGen/MachineInstr.h | 2 | ||||
-rw-r--r-- | lib/CodeGen/MachineInstr.cpp | 6 |
3 files changed, 4 insertions, 9 deletions
diff --git a/include/llvm/CodeGen/InstrSelection.h b/include/llvm/CodeGen/InstrSelection.h index a175f82..0a8a927 100644 --- a/include/llvm/CodeGen/InstrSelection.h +++ b/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/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 80755ab..b8e7ec5 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/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/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp index 4a63258..a53d29c 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; } |