mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Add isMetadata() to check metadata operand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74883 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bee9e35ba2
commit
8845f6aca3
@ -164,6 +164,8 @@ public:
|
|||||||
bool isGlobal() const { return OpKind == MO_GlobalAddress; }
|
bool isGlobal() const { return OpKind == MO_GlobalAddress; }
|
||||||
/// isSymbol - Tests if this is a MO_ExternalSymbol operand.
|
/// isSymbol - Tests if this is a MO_ExternalSymbol operand.
|
||||||
bool isSymbol() const { return OpKind == MO_ExternalSymbol; }
|
bool isSymbol() const { return OpKind == MO_ExternalSymbol; }
|
||||||
|
/// isMetadata - Tests if this is a MO_Metadata operand.
|
||||||
|
bool isMetadata() const { return OpKind == MO_Metadata; }
|
||||||
|
|
||||||
//===--------------------------------------------------------------------===//
|
//===--------------------------------------------------------------------===//
|
||||||
// Accessors for Register Operands
|
// Accessors for Register Operands
|
||||||
@ -325,7 +327,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void setOffset(int64_t Offset) {
|
void setOffset(int64_t Offset) {
|
||||||
assert((isGlobal() || isSymbol() || isCPI()) &&
|
assert((isGlobal() || isSymbol() || isCPI() || isMetadata()) &&
|
||||||
"Wrong MachineOperand accessor");
|
"Wrong MachineOperand accessor");
|
||||||
Contents.OffsetedInfo.Offset = Offset;
|
Contents.OffsetedInfo.Offset = Offset;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user