Add missing new method to clang::serialization::DataStreamBasic{Reader,Writer} subclasses

See https://github.com/llvm/llvm-project/pull/134142
This commit is contained in:
Anthony Latsis
2025-06-12 03:33:13 +01:00
parent 7f8415bd36
commit b58d10c682
2 changed files with 9 additions and 0 deletions

View File

@@ -64,6 +64,11 @@ public:
return uint32_t(asImpl().readUInt64());
}
clang::UnsignedOrNone readUnsignedOrNone() {
return clang::UnsignedOrNone::fromInternalRepresentation(
unsigned(asImpl().readUInt64()));
}
clang::Selector readSelector() {
uint64_t numArgsPlusOne = asImpl().readUInt64();