mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Serialization] Avoid serializing source orders, trust deserialized decls in preserving such order. rdar://24610992
Thank Jordan for suggesting this.
This commit is contained in:
@@ -597,7 +597,6 @@ public:
|
||||
}
|
||||
result.Raw = RawComment(Comments);
|
||||
result.Group = endian::readNext<uint32_t, little, unaligned>(data);
|
||||
result.SourceOrder = endian::readNext<uint32_t, little, unaligned>(data);
|
||||
return result;
|
||||
}
|
||||
};
|
||||
@@ -1557,15 +1556,6 @@ Optional<StringRef> ModuleFile::getGroupNameForDecl(const Decl *D) const {
|
||||
return getGroupNameById(Triple.getValue().Group);
|
||||
}
|
||||
|
||||
Optional<unsigned>
|
||||
ModuleFile::getSourceOrderForDecl(const Decl *D) const {
|
||||
auto Triple = getCommentForDecl(D);
|
||||
if (!Triple.hasValue()) {
|
||||
return None;
|
||||
}
|
||||
return Triple.getValue().SourceOrder;
|
||||
}
|
||||
|
||||
void ModuleFile::collectAllGroups(std::vector<StringRef> &Names) const {
|
||||
if (!GroupNamesMap)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user