mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-19 17:33:29 +00:00
Fix build breakage. :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@511 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2e5309304a
commit
56786d268f
@ -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
|
||||
//
|
||||
|
@ -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);
|
||||
|
||||
|
||||
//**************************************************************************/
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user