From: Chris Lattner Date: Sun, 29 Feb 2004 19:02:39 +0000 (+0000) Subject: Move methods out of .h file X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=585911ee21a12c4bf57aafe10cf949877c2dbd0b;p=oota-llvm.git Move methods out of .h file git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12001 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/MachineCodeForInstruction.cpp b/lib/CodeGen/MachineCodeForInstruction.cpp index 9d63df5bf85..75ee28878ec 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"));