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

@@ -140,6 +140,8 @@ public:
Optional<StringRef> getGroupNameForDecl(const Decl *D) const override;
Optional<StringRef> getSourceFileNameForDecl(const Decl *D) const override;
void collectAllGroups(std::vector<StringRef> &Names) const override;
virtual void getTopLevelDecls(SmallVectorImpl<Decl*> &results) const override;