mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Do not use explicit casts that hide the dependence on Instruction being
annotable git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12000 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -45,14 +45,8 @@ public:
|
|||||||
MachineCodeForInstruction() : Annotation(MCFI_AID), callArgsDesc(NULL) {}
|
MachineCodeForInstruction() : Annotation(MCFI_AID), callArgsDesc(NULL) {}
|
||||||
~MachineCodeForInstruction();
|
~MachineCodeForInstruction();
|
||||||
|
|
||||||
static MachineCodeForInstruction &get(const Instruction *I) {
|
static MachineCodeForInstruction &get(const Instruction *I);
|
||||||
assert(I != NULL);
|
static void destroy(const Instruction *I);
|
||||||
return *(MachineCodeForInstruction*)
|
|
||||||
((Annotable*)I)->getOrCreateAnnotation(MCFI_AID);
|
|
||||||
}
|
|
||||||
static void destroy(const Instruction *I) {
|
|
||||||
((Annotable*)I)->deleteAnnotation(MCFI_AID);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Access to underlying machine instructions...
|
// Access to underlying machine instructions...
|
||||||
typedef std::vector<MachineInstr*>::iterator iterator;
|
typedef std::vector<MachineInstr*>::iterator iterator;
|
||||||
|
@@ -45,14 +45,8 @@ public:
|
|||||||
MachineCodeForInstruction() : Annotation(MCFI_AID), callArgsDesc(NULL) {}
|
MachineCodeForInstruction() : Annotation(MCFI_AID), callArgsDesc(NULL) {}
|
||||||
~MachineCodeForInstruction();
|
~MachineCodeForInstruction();
|
||||||
|
|
||||||
static MachineCodeForInstruction &get(const Instruction *I) {
|
static MachineCodeForInstruction &get(const Instruction *I);
|
||||||
assert(I != NULL);
|
static void destroy(const Instruction *I);
|
||||||
return *(MachineCodeForInstruction*)
|
|
||||||
((Annotable*)I)->getOrCreateAnnotation(MCFI_AID);
|
|
||||||
}
|
|
||||||
static void destroy(const Instruction *I) {
|
|
||||||
((Annotable*)I)->deleteAnnotation(MCFI_AID);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Access to underlying machine instructions...
|
// Access to underlying machine instructions...
|
||||||
typedef std::vector<MachineInstr*>::iterator iterator;
|
typedef std::vector<MachineInstr*>::iterator iterator;
|
||||||
|
Reference in New Issue
Block a user