diff options
author | Devang Patel <dpatel@apple.com> | 2009-07-01 21:26:41 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-07-01 21:26:41 +0000 |
commit | f206e4444b3d56a75fc379c9c756f96e11f5ccab (patch) | |
tree | 91d1e1174ab0ad819e0ce8b2a5a6755d9a60e2ab | |
parent | 03200753ee66c33e27afc9e09a2108a5ad8366a8 (diff) | |
download | bcm5719-llvm-f206e4444b3d56a75fc379c9c756f96e11f5ccab.tar.gz bcm5719-llvm-f206e4444b3d56a75fc379c9c756f96e11f5ccab.zip |
Add getMDNode() to access metadata node.
llvm-svn: 74644
-rw-r--r-- | llvm/include/llvm/CodeGen/MachineOperand.h | 4 |
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"); |