* Swich to annotation model for MachineCodeForInstruction
llvm-svn: 1646
This commit is contained in:
parent
02d8e37cae
commit
0068ea26d7
|
|
@ -23,6 +23,7 @@
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "llvm/CodeGen/InstrForest.h"
|
#include "llvm/CodeGen/InstrForest.h"
|
||||||
|
#include "llvm/CodeGen/MachineCodeForInstruction.h"
|
||||||
#include "llvm/Method.h"
|
#include "llvm/Method.h"
|
||||||
#include "llvm/iTerminators.h"
|
#include "llvm/iTerminators.h"
|
||||||
#include "llvm/iMemory.h"
|
#include "llvm/iMemory.h"
|
||||||
|
|
@ -125,16 +126,17 @@ InstructionNode::dumpNode(int indent) const
|
||||||
cerr << " ";
|
cerr << " ";
|
||||||
|
|
||||||
cerr << getInstruction()->getOpcodeName();
|
cerr << getInstruction()->getOpcodeName();
|
||||||
|
const MachineCodeForInstruction &mvec =
|
||||||
const vector<MachineInstr*> &mvec = getInstruction()->getMachineInstrVec();
|
MachineCodeForInstruction::get(getInstruction());
|
||||||
|
|
||||||
if (mvec.size() > 0)
|
if (mvec.size() > 0)
|
||||||
cerr << "\tMachine Instructions: ";
|
cerr << "\tMachine Instructions: ";
|
||||||
for (unsigned int i=0; i < mvec.size(); i++)
|
|
||||||
{
|
for (unsigned int i=0; i < mvec.size(); ++i) {
|
||||||
mvec[i]->dump(0);
|
mvec[i]->dump(0);
|
||||||
if (i < mvec.size() - 1)
|
if (i < mvec.size() - 1)
|
||||||
cerr << "; ";
|
cerr << "; ";
|
||||||
}
|
}
|
||||||
|
|
||||||
cerr << "\n";
|
cerr << "\n";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue