mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +00:00
improve comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80897 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -110,7 +110,7 @@ private:
|
|||||||
GlobalValue *GV; // For MO_GlobalAddress.
|
GlobalValue *GV; // For MO_GlobalAddress.
|
||||||
MDNode *Node; // For MO_Metadata.
|
MDNode *Node; // For MO_Metadata.
|
||||||
} Val;
|
} Val;
|
||||||
int64_t Offset; // An offset from the object.
|
int64_t Offset; // An offset from the object.
|
||||||
} OffsetedInfo;
|
} OffsetedInfo;
|
||||||
} Contents;
|
} Contents;
|
||||||
|
|
||||||
@ -298,6 +298,8 @@ public:
|
|||||||
return Contents.OffsetedInfo.Val.Node;
|
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 {
|
int64_t getOffset() const {
|
||||||
assert((isGlobal() || isSymbol() || isCPI()) &&
|
assert((isGlobal() || isSymbol() || isCPI()) &&
|
||||||
"Wrong MachineOperand accessor");
|
"Wrong MachineOperand accessor");
|
||||||
|
Reference in New Issue
Block a user