aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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
commite85f2348c9b49f8339899be6936fde33559bdc5f (patch)
tree4a79ee487c17151a1b604bc0ad3f19617ff3e85f /lib
parent9548f20ad560d5c094cdfb5d531d84140e5b6a43 (diff)
downloadexternal_llvm-e85f2348c9b49f8339899be6936fde33559bdc5f.zip
external_llvm-e85f2348c9b49f8339899be6936fde33559bdc5f.tar.gz
external_llvm-e85f2348c9b49f8339899be6936fde33559bdc5f.tar.bz2
Do not use explicit casts that hide the dependence on Instruction being
annotable git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12000 91177308-0d34-0410-b5e6-96231b3b80d8
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;