Move methods out of .h file
authorChris Lattner <sabre@nondot.org>
Sun, 29 Feb 2004 19:02:39 +0000 (19:02 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 29 Feb 2004 19:02:39 +0000 (19:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12001 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineCodeForInstruction.cpp

index 9d63df5bf85874a84e9a4966f28f15d83fc8da33..75ee28878ec8891b0eec508116c47c662f7fb7ea 100644 (file)
 #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"));