ModulePrinter: Print decls from the same source file near each other.

This commit is contained in:
Xi Ge
2016-03-07 18:31:36 -08:00
parent 739c409140
commit a5c9072344
9 changed files with 79 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);