summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineCodeForInstruction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-29 19:02:39 +0000
committerChris Lattner <sabre@nondot.org>2004-02-29 19:02:39 +0000
commit6194ee84bae19a18001367d114337d81fa3672da (patch)
tree952f7472fb9eb18a12a23fcb38f2add5d659e519 /llvm/lib/CodeGen/MachineCodeForInstruction.cpp
parent23840c7db5df5b44a46fff51f52b0b31b34d1ce6 (diff)
downloadbcm5719-llvm-6194ee84bae19a18001367d114337d81fa3672da.tar.gz
bcm5719-llvm-6194ee84bae19a18001367d114337d81fa3672da.zip
Move methods out of .h file
llvm-svn: 12001
Diffstat (limited to 'llvm/lib/CodeGen/MachineCodeForInstruction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineCodeForInstruction.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineCodeForInstruction.cpp b/llvm/lib/CodeGen/MachineCodeForInstruction.cpp
index 9d63df5bf85..75ee28878ec 100644
--- a/llvm/lib/CodeGen/MachineCodeForInstruction.cpp
+++ b/llvm/lib/CodeGen/MachineCodeForInstruction.cpp
@@ -28,6 +28,15 @@
#include "llvm/Instruction.h"
using namespace llvm;
+MachineCodeForInstruction &MachineCodeForInstruction::get(const Instruction *I){
+ return *(MachineCodeForInstruction*)I->getOrCreateAnnotation(MCFI_AID);
+}
+void MachineCodeForInstruction::destroy(const Instruction *I) {
+ I->deleteAnnotation(MCFI_AID);
+}
+
+
+
AnnotationID llvm::MCFI_AID(
AnnotationManager::getID("CodeGen::MachineCodeForInstruction"));
OpenPOWER on IntegriCloud