[AsmParser] Remove MDSignedOrUnsignedField (NFC)

The last use was removed on Apr 18, 2020 in commit
aad3d578da.
This commit is contained in:
Kazu Hirata 2021-08-15 09:31:39 -07:00
parent c6b7db015f
commit e6e687f2d9
1 changed files with 0 additions and 16 deletions

View File

@ -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 } // end anonymous namespace
namespace llvm { namespace llvm {