mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-05 13:09:10 +00:00
Fixes to previous checkin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4314 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
51a8d85281
commit
a4f808b54e
@ -35,10 +35,11 @@ public:
|
|||||||
|
|
||||||
static MachineCodeForInstruction &get(const Instruction *I) {
|
static MachineCodeForInstruction &get(const Instruction *I) {
|
||||||
assert(I != NULL);
|
assert(I != NULL);
|
||||||
return *(MachineCodeForInstruction*)I->getOrCreateAnnotation(MCFI_AID);
|
return *(MachineCodeForInstruction*)
|
||||||
|
((Annotable*)I)->getOrCreateAnnotation(MCFI_AID);
|
||||||
}
|
}
|
||||||
static void destroy(const Instruction *I) {
|
static void destroy(const Instruction *I) {
|
||||||
I->deleteAnnotation(MCFI_AID);
|
((Annotable*)I)->deleteAnnotation(MCFI_AID);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Access to underlying machine instructions...
|
// Access to underlying machine instructions...
|
||||||
|
@ -35,10 +35,11 @@ public:
|
|||||||
|
|
||||||
static MachineCodeForInstruction &get(const Instruction *I) {
|
static MachineCodeForInstruction &get(const Instruction *I) {
|
||||||
assert(I != NULL);
|
assert(I != NULL);
|
||||||
return *(MachineCodeForInstruction*)I->getOrCreateAnnotation(MCFI_AID);
|
return *(MachineCodeForInstruction*)
|
||||||
|
((Annotable*)I)->getOrCreateAnnotation(MCFI_AID);
|
||||||
}
|
}
|
||||||
static void destroy(const Instruction *I) {
|
static void destroy(const Instruction *I) {
|
||||||
I->deleteAnnotation(MCFI_AID);
|
((Annotable*)I)->deleteAnnotation(MCFI_AID);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Access to underlying machine instructions...
|
// Access to underlying machine instructions...
|
||||||
|
Loading…
Reference in New Issue
Block a user