summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-07-01 21:26:41 +0000
committerDevang Patel <dpatel@apple.com>2009-07-01 21:26:41 +0000
commitf206e4444b3d56a75fc379c9c756f96e11f5ccab (patch)
tree91d1e1174ab0ad819e0ce8b2a5a6755d9a60e2ab /llvm
parent03200753ee66c33e27afc9e09a2108a5ad8366a8 (diff)
downloadbcm5719-llvm-f206e4444b3d56a75fc379c9c756f96e11f5ccab.tar.gz
bcm5719-llvm-f206e4444b3d56a75fc379c9c756f96e11f5ccab.zip
Add getMDNode() to access metadata node.
llvm-svn: 74644
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/CodeGen/MachineOperand.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineOperand.h b/llvm/include/llvm/CodeGen/MachineOperand.h
index 0eb204ad4c0..10aa493e9df 100644
--- a/llvm/include/llvm/CodeGen/MachineOperand.h
+++ b/llvm/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");
OpenPOWER on IntegriCloud