[llvm-commits] CVS: llvm/lib/CodeGen/MachineCodeForInstruction.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Feb 29 13:03:42 PST 2004
Changes in directory llvm/lib/CodeGen:
MachineCodeForInstruction.cpp updated: 1.12 -> 1.13
---
Log message:
Move methods out of .h file
---
Diffs of the changes: (+9 -0)
Index: llvm/lib/CodeGen/MachineCodeForInstruction.cpp
diff -u llvm/lib/CodeGen/MachineCodeForInstruction.cpp:1.12 llvm/lib/CodeGen/MachineCodeForInstruction.cpp:1.13
--- llvm/lib/CodeGen/MachineCodeForInstruction.cpp:1.12 Wed Feb 11 20:27:10 2004
+++ llvm/lib/CodeGen/MachineCodeForInstruction.cpp Sun Feb 29 13:02:39 2004
@@ -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"));
More information about the llvm-commits
mailing list