[ASTPrinter] Move up the logic printing the module disambiguation

This commit is contained in:
Alexis Laferrière
2022-11-15 15:58:16 -08:00
parent a380799570
commit 81c19b5107
6 changed files with 17 additions and 21 deletions

View File

@@ -185,11 +185,10 @@ public:
StreamPrinter::printTypeRef(T, TD, Name, NameContext);
}
void printModuleRef(ModuleEntity Mod, Identifier Name,
const PrintOptions &Options) override {
void printModuleRef(ModuleEntity Mod, Identifier Name) override {
unsigned StartOffset = OS.tell();
Info.References.emplace_back(Mod, StartOffset, Name.str().size());
StreamPrinter::printModuleRef(Mod, Name, Options);
StreamPrinter::printModuleRef(Mod, Name);
}
};