[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineCodeForInstruction.h

Chris Lattner lattner at cs.uiuc.edu
Sun Feb 29 13:03:00 PST 2004


Changes in directory llvm/include/llvm/CodeGen:

MachineCodeForInstruction.h updated: 1.12 -> 1.13

---
Log message:

Do not use explicit casts that hide the dependence on Instruction being 
annotable


---
Diffs of the changes:  (+2 -8)

Index: llvm/include/llvm/CodeGen/MachineCodeForInstruction.h
diff -u llvm/include/llvm/CodeGen/MachineCodeForInstruction.h:1.12 llvm/include/llvm/CodeGen/MachineCodeForInstruction.h:1.13
--- llvm/include/llvm/CodeGen/MachineCodeForInstruction.h:1.12	Tue Nov 11 16:41:31 2003
+++ llvm/include/llvm/CodeGen/MachineCodeForInstruction.h	Sun Feb 29 13:02:26 2004
@@ -45,14 +45,8 @@
   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;





More information about the llvm-commits mailing list