summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-02-03 07:31:41 +0000
committerChris Lattner <sabre@nondot.org>2002-02-03 07:31:41 +0000
commit0068ea26d719f11c577324b300ba43ea7828f24c (patch)
tree6d7ae477688a4de7c64ca1c25ef3de3c5ee7bb9c /llvm/lib/CodeGen
parent02d8e37cae9908d868d23681f26d2c96fdbe7715 (diff)
downloadbcm5719-llvm-0068ea26d719f11c577324b300ba43ea7828f24c.tar.gz
bcm5719-llvm-0068ea26d719f11c577324b300ba43ea7828f24c.zip
* Swich to annotation model for MachineCodeForInstruction
llvm-svn: 1646
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/InstrSelection/InstrForest.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/InstrSelection/InstrForest.cpp b/llvm/lib/CodeGen/InstrSelection/InstrForest.cpp
index 20cbe8d71bf..29090e06cc0 100644
--- a/llvm/lib/CodeGen/InstrSelection/InstrForest.cpp
+++ b/llvm/lib/CodeGen/InstrSelection/InstrForest.cpp
@@ -23,6 +23,7 @@
//---------------------------------------------------------------------------
#include "llvm/CodeGen/InstrForest.h"
+#include "llvm/CodeGen/MachineCodeForInstruction.h"
#include "llvm/Method.h"
#include "llvm/iTerminators.h"
#include "llvm/iMemory.h"
@@ -125,16 +126,17 @@ InstructionNode::dumpNode(int indent) const
cerr << " ";
cerr << getInstruction()->getOpcodeName();
-
- const vector<MachineInstr*> &mvec = getInstruction()->getMachineInstrVec();
+ const MachineCodeForInstruction &mvec =
+ MachineCodeForInstruction::get(getInstruction());
+
if (mvec.size() > 0)
cerr << "\tMachine Instructions: ";
- for (unsigned int i=0; i < mvec.size(); i++)
- {
- mvec[i]->dump(0);
- if (i < mvec.size() - 1)
- cerr << "; ";
- }
+
+ for (unsigned int i=0; i < mvec.size(); ++i) {
+ mvec[i]->dump(0);
+ if (i < mvec.size() - 1)
+ cerr << "; ";
+ }
cerr << "\n";
}
OpenPOWER on IntegriCloud