forked from OSchip/llvm-project
[AsmParser] Remove MDSignedOrUnsignedField (NFC)
The last use was removed on Apr 18, 2020 in commit
aad3d578da
.
This commit is contained in:
parent
c6b7db015f
commit
e6e687f2d9
|
@ -3914,22 +3914,6 @@ struct MDSignedOrMDField : MDEitherFieldImpl<MDSignedField, MDField> {
|
|||
}
|
||||
};
|
||||
|
||||
struct MDSignedOrUnsignedField
|
||||
: MDEitherFieldImpl<MDSignedField, MDUnsignedField> {
|
||||
MDSignedOrUnsignedField() : ImplTy(MDSignedField(0), MDUnsignedField(0)) {}
|
||||
|
||||
bool isMDSignedField() const { return WhatIs == IsTypeA; }
|
||||
bool isMDUnsignedField() const { return WhatIs == IsTypeB; }
|
||||
int64_t getMDSignedValue() const {
|
||||
assert(isMDSignedField() && "Wrong field type");
|
||||
return A.Val;
|
||||
}
|
||||
uint64_t getMDUnsignedValue() const {
|
||||
assert(isMDUnsignedField() && "Wrong field type");
|
||||
return B.Val;
|
||||
}
|
||||
};
|
||||
|
||||
} // end anonymous namespace
|
||||
|
||||
namespace llvm {
|
||||
|
|
Loading…
Reference in New Issue