From: Vikram S. Adve Date: Mon, 8 Jul 2002 23:31:24 +0000 (+0000) Subject: class MachineCodeForBasicBlock is now an annotation on BasicBlock. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0b040640548e11229ba80c488910698ab445cb5b;p=oota-llvm.git class MachineCodeForBasicBlock is now an annotation on BasicBlock. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2838 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/SparcV9/SparcV9PrologEpilogInserter.cpp b/lib/Target/SparcV9/SparcV9PrologEpilogInserter.cpp index 79f68715054..b6169c76e8f 100644 --- a/lib/Target/SparcV9/SparcV9PrologEpilogInserter.cpp +++ b/lib/Target/SparcV9/SparcV9PrologEpilogInserter.cpp @@ -12,6 +12,7 @@ #include "SparcInternals.h" #include "SparcRegClassInfo.h" #include "llvm/CodeGen/MachineCodeForMethod.h" +#include "llvm/CodeGen/MachineCodeForBasicBlock.h" #include "llvm/CodeGen/MachineCodeForInstruction.h" #include "llvm/CodeGen/MachineInstr.h" #include "llvm/Pass.h" @@ -101,7 +102,7 @@ void InsertPrologEpilogCode::InsertPrologCode(Function &F) mvec.push_back(M); } - MachineCodeForBasicBlock& bbMvec = F.getEntryNode().getMachineInstrVec(); + MachineCodeForBasicBlock& bbMvec = MachineCodeForBasicBlock::get(&F.getEntryNode()); bbMvec.insert(bbMvec.begin(), mvec.begin(), mvec.end()); } @@ -117,7 +118,7 @@ void InsertPrologEpilogCode::InsertEpilogCode(Function &F) (int64_t)0); Restore->SetMachineOperandReg(2, Target.getRegInfo().getZeroRegNum()); - MachineCodeForBasicBlock& bbMvec = I->getMachineInstrVec(); + MachineCodeForBasicBlock& bbMvec = MachineCodeForBasicBlock::get(I); MachineCodeForInstruction &termMvec = MachineCodeForInstruction::get(TermInst);