diff options
-rw-r--r-- | include/llvm/CodeGen/MachineCodeForInstruction.h | 10 | ||||
-rw-r--r-- | lib/Target/SparcV9/MachineCodeForInstruction.h | 10 |
2 files changed, 4 insertions, 16 deletions
diff --git a/include/llvm/CodeGen/MachineCodeForInstruction.h b/include/llvm/CodeGen/MachineCodeForInstruction.h index 9a08de7..bc457f3 100644 --- a/include/llvm/CodeGen/MachineCodeForInstruction.h +++ b/include/llvm/CodeGen/MachineCodeForInstruction.h @@ -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; diff --git a/lib/Target/SparcV9/MachineCodeForInstruction.h b/lib/Target/SparcV9/MachineCodeForInstruction.h index 9a08de7..bc457f3 100644 --- a/lib/Target/SparcV9/MachineCodeForInstruction.h +++ b/lib/Target/SparcV9/MachineCodeForInstruction.h @@ -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; |