[Serialization] Serialize the source order of Decls appearing in their original source file.

We used to think the source order is preserved after de-serialization; however, this seems to be
not the case.
This commit is contained in:
Xi Ge
2016-03-08 11:00:00 -08:00
parent 7a3276738b
commit c84f667676
9 changed files with 54 additions and 4 deletions

View File

@@ -495,11 +495,17 @@ SerializedASTFile::getGroupNameForDecl(const Decl *D) const {
return File.getGroupNameForDecl(D);
}
Optional<StringRef>
SerializedASTFile::getSourceFileNameForDecl(const Decl *D) const {
return File.getSourceFileNameForDecl(D);
}
Optional<unsigned>
SerializedASTFile::getSourceOrderForDecl(const Decl *D) const {
return File.getSourceOrderForDecl(D);
}
void
SerializedASTFile::collectAllGroups(std::vector<StringRef> &Names) const {
File.collectAllGroups(Names);