[llvm-commits] [llvm] r80897 - /llvm/trunk/include/llvm/CodeGen/MachineOperand.h
Chris Lattner
sabre at nondot.org
Wed Sep 2 23:00:00 PDT 2009
Author: lattner
Date: Thu Sep 3 01:00:00 2009
New Revision: 80897
URL: http://llvm.org/viewvc/llvm-project?rev=80897&view=rev
Log:
improve comments.
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=80897&r1=80896&r2=80897&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineOperand.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineOperand.h Thu Sep 3 01:00:00 2009
@@ -110,7 +110,7 @@
GlobalValue *GV; // For MO_GlobalAddress.
MDNode *Node; // For MO_Metadata.
} Val;
- int64_t Offset; // An offset from the object.
+ int64_t Offset; // An offset from the object.
} OffsetedInfo;
} Contents;
@@ -298,6 +298,8 @@
return Contents.OffsetedInfo.Val.Node;
}
+ /// getOffset - Return the offset from the symbol in this operand. This always
+ /// returns 0 for ExternalSymbol operands.
int64_t getOffset() const {
assert((isGlobal() || isSymbol() || isCPI()) &&
"Wrong MachineOperand accessor");
More information about the llvm-commits
mailing list