File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
include/swift/ClangImporter Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,11 @@ class DataStreamBasicReader
64
64
return uint32_t (asImpl ().readUInt64 ());
65
65
}
66
66
67
+ clang::UnsignedOrNone readUnsignedOrNone () {
68
+ return clang::UnsignedOrNone::fromInternalRepresentation (
69
+ unsigned (asImpl ().readUInt64 ()));
70
+ }
71
+
67
72
clang::Selector readSelector () {
68
73
uint64_t numArgsPlusOne = asImpl ().readUInt64 ();
69
74
Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ class DataStreamBasicWriter
61
61
asImpl ().writeUInt64 (uint64_t (value));
62
62
}
63
63
64
+ void writeUnsignedOrNone (clang::UnsignedOrNone value) {
65
+ asImpl ().writeUInt64 (uint64_t (value.toInternalRepresentation ()));
66
+ }
67
+
64
68
void writeSelector (clang::Selector selector) {
65
69
if (selector.isNull ()) {
66
70
asImpl ().writeUInt64 (0 );
You can’t perform that action at this time.
0 commit comments