llvm.org GIT mirror llvm / 36bf49c
improve comments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80897 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 11 years ago
1 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
109109 GlobalValue *GV; // For MO_GlobalAddress.
110110 MDNode *Node; // For MO_Metadata.
111111 } Val;
112 int64_t Offset; // An offset from the object.
112 int64_t Offset; // An offset from the object.
113113 } OffsetedInfo;
114114 } Contents;
115115
297297 return Contents.OffsetedInfo.Val.Node;
298298 }
299299
300 /// getOffset - Return the offset from the symbol in this operand. This always
301 /// returns 0 for ExternalSymbol operands.
300302 int64_t getOffset() const {
301303 assert((isGlobal() || isSymbol() || isCPI()) &&
302304 "Wrong MachineOperand accessor");