summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-29 19:02:26 +0000
committerChris Lattner <sabre@nondot.org>2004-02-29 19:02:26 +0000
commit23840c7db5df5b44a46fff51f52b0b31b34d1ce6 (patch)
tree1e8026b1916a36d1411673ed640eb4fd98188959
parent79b8d467dafe95511fdd224882c961d32aa78f08 (diff)
downloadbcm5719-llvm-23840c7db5df5b44a46fff51f52b0b31b34d1ce6.tar.gz
bcm5719-llvm-23840c7db5df5b44a46fff51f52b0b31b34d1ce6.zip
Do not use explicit casts that hide the dependence on Instruction being
annotable llvm-svn: 12000
-rw-r--r--llvm/include/llvm/CodeGen/MachineCodeForInstruction.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineCodeForInstruction.h b/llvm/include/llvm/CodeGen/MachineCodeForInstruction.h
index 9a08de79afa..bc457f39579 100644
--- a/llvm/include/llvm/CodeGen/MachineCodeForInstruction.h
+++ b/llvm/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;
OpenPOWER on IntegriCloud