From 0068ea26d719f11c577324b300ba43ea7828f24c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 3 Feb 2002 07:31:41 +0000 Subject: * Swich to annotation model for MachineCodeForInstruction llvm-svn: 1646 --- llvm/lib/CodeGen/InstrSelection/InstrForest.cpp | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'llvm/lib/CodeGen') 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 &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"; } -- cgit v1.2.3