[llvm-commits] [llvm] r74644 - /llvm/trunk/include/llvm/CodeGen/MachineOperand.h
Devang Patel
dpatel at apple.com
Wed Jul 1 14:26:41 PDT 2009
Author: dpatel
Date: Wed Jul 1 16:26:41 2009
New Revision: 74644
URL: http://llvm.org/viewvc/llvm-project?rev=74644&view=rev
Log:
Add getMDNode() to access metadata node.
Modified:
llvm/trunk/include/llvm/CodeGen/MachineOperand.h
Modified: llvm/trunk/include/llvm/CodeGen/MachineOperand.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineOperand.h?rev=74644&r1=74643&r2=74644&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineOperand.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineOperand.h Wed Jul 1 16:26:41 2009
@@ -300,6 +300,10 @@
return Contents.OffsetedInfo.Val.GV;
}
+ MDNode *getMDNode() const {
+ return Contents.OffsetedInfo.Val.Node;
+ }
+
int64_t getOffset() const {
assert((isGlobal() || isSymbol() || isCPI()) &&
"Wrong MachineOperand accessor");
More information about the llvm-commits
mailing list