[Serialization] Avoid serializing source orders, trust deserialized decls in preserving such order. rdar://24610992

Thank Jordan for suggesting this.
This commit is contained in:
Xi Ge
2016-02-11 11:57:03 -08:00
parent 9da87ef3aa
commit 9aa3d01101
10 changed files with 20 additions and 63 deletions

View File

@@ -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;