Convert to the new MachineFunctionInfo interface

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15904 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2004-08-18 18:13:37 +00:00
parent 8bdf87d1d8
commit a1e51ff2aa
10 changed files with 34 additions and 43 deletions

View File

@@ -35,11 +35,11 @@ using namespace llvm;
MachineCodeForInstruction &MachineCodeForInstruction::get(const Instruction *I){
MachineFunction &MF = MachineFunction::get(I->getParent()->getParent());
return MF.getInfo()->MCFIEntries[I];
return MF.getInfo<SparcV9FunctionInfo>()->MCFIEntries[I];
}
void MachineCodeForInstruction::destroy(const Instruction *I) {
MachineFunction &MF = MachineFunction::get(I->getParent()->getParent());
MF.getInfo()->MCFIEntries.erase(I);
MF.getInfo<SparcV9FunctionInfo>()->MCFIEntries.erase(I);
}
void