mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Do not use explicit casts that hide the dependence on Instruction being
annotable llvm-svn: 12000
This commit is contained in:
parent
252e887094
commit
df24575c31
@ -45,14 +45,8 @@ public:
|
||||
MachineCodeForInstruction() : Annotation(MCFI_AID), callArgsDesc(NULL) {}
|
||||
~MachineCodeForInstruction();
|
||||
|
||||
static MachineCodeForInstruction &get(const Instruction *I) {
|
||||
assert(I != NULL);
|
||||
return *(MachineCodeForInstruction*)
|
||||
((Annotable*)I)->getOrCreateAnnotation(MCFI_AID);
|
||||
}
|
||||
static void destroy(const Instruction *I) {
|
||||
((Annotable*)I)->deleteAnnotation(MCFI_AID);
|
||||
}
|
||||
static MachineCodeForInstruction &get(const Instruction *I);
|
||||
static void destroy(const Instruction *I);
|
||||
|
||||
// Access to underlying machine instructions...
|
||||
typedef std::vector<MachineInstr*>::iterator iterator;
|
||||
|
Loading…
Reference in New Issue
Block a user