aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
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
commit585911ee21a12c4bf57aafe10cf949877c2dbd0b (patch)
tree172792ec9635c8028ced6f5773a3024b379d6f07 /lib/CodeGen
parente85f2348c9b49f8339899be6936fde33559bdc5f (diff)
downloadexternal_llvm-585911ee21a12c4bf57aafe10cf949877c2dbd0b.zip
external_llvm-585911ee21a12c4bf57aafe10cf949877c2dbd0b.tar.gz
external_llvm-585911ee21a12c4bf57aafe10cf949877c2dbd0b.tar.bz2
Move methods out of .h file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12001 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/MachineCodeForInstruction.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineCodeForInstruction.cpp b/lib/CodeGen/MachineCodeForInstruction.cpp
index 9d63df5..75ee288 100644
--- a/lib/CodeGen/MachineCodeForInstruction.cpp
+++ b/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"));