mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-20 11:29:24 +00:00
Move methods out of .h file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12001 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e85f2348c9
commit
585911ee21
@ -28,6 +28,15 @@
|
|||||||
#include "llvm/Instruction.h"
|
#include "llvm/Instruction.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
|
MachineCodeForInstruction &MachineCodeForInstruction::get(const Instruction *I){
|
||||||
|
return *(MachineCodeForInstruction*)I->getOrCreateAnnotation(MCFI_AID);
|
||||||
|
}
|
||||||
|
void MachineCodeForInstruction::destroy(const Instruction *I) {
|
||||||
|
I->deleteAnnotation(MCFI_AID);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
AnnotationID llvm::MCFI_AID(
|
AnnotationID llvm::MCFI_AID(
|
||||||
AnnotationManager::getID("CodeGen::MachineCodeForInstruction"));
|
AnnotationManager::getID("CodeGen::MachineCodeForInstruction"));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user