projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4d826e
)
Add getMDNode() to access metadata node.
author
Devang Patel
<dpatel@apple.com>
Wed, 1 Jul 2009 21:26:41 +0000
(21:26 +0000)
committer
Devang Patel
<dpatel@apple.com>
Wed, 1 Jul 2009 21:26:41 +0000
(21:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74644
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/MachineOperand.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/MachineOperand.h
b/include/llvm/CodeGen/MachineOperand.h
index 0eb204ad4c0975d136f56a6fdc8ba1eb1fd8345e..10aa493e9df65f5f5c0bf18565fd978fee66a1d3 100644
(file)
--- a/
include/llvm/CodeGen/MachineOperand.h
+++ b/
include/llvm/CodeGen/MachineOperand.h
@@
-300,6
+300,10
@@
public:
return Contents.OffsetedInfo.Val.GV;
}
+ MDNode *getMDNode() const {
+ return Contents.OffsetedInfo.Val.Node;
+ }
+
int64_t getOffset() const {
assert((isGlobal() || isSymbol() || isCPI()) &&
"Wrong MachineOperand accessor");