OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e85f234
)
Move methods out of .h file
author
Chris Lattner
<sabre@nondot.org>
Sun, 29 Feb 2004 19:02:39 +0000
(19:02 +0000)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/lib/CodeGen/MachineCodeForInstruction.cpp
b/lib/CodeGen/MachineCodeForInstruction.cpp
index
9d63df5
..
75ee288
100644
(file)
--- 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"));