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 | 6f854d1e784c53893af4eff3903ffb8e752a93cf (patch) | |
tree | f20dd7799dff7bba7396a976b3ef93ffaf5ae3fd /include/llvm/CodeGen/MachineOperand.h | |
parent | d4d826e17081808fea81509a959a983ed5df1d36 (diff) |
Add getMDNode() to access metadata node.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74644 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineOperand.h')
-rw-r--r-- | include/llvm/CodeGen/MachineOperand.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineOperand.h b/include/llvm/CodeGen/MachineOperand.h index 0eb204ad4c..10aa493e9d 100644 --- 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"); |