Re-apply "ModulePrinter: Print decls from the same source file near each other."

This reverts commit 1db83907e3.
This commit is contained in:
Xi Ge
2016-03-08 10:00:03 -08:00
parent 4b86ad2d9f
commit 7a3276738b
9 changed files with 83 additions and 10 deletions

View File

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