mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-19 02:25:01 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user