aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/SparcV9/MachineCodeForInstruction.h10
1 files changed, 2 insertions, 8 deletions
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;