Add a mechanism to let cross-module-optimization add additional TBD symbols.

PublicCMOSymbols stores symbols which are made public by cross-module-optimizations.
Those symbols are primarily stored in SILModule and eventually used by TBD generation and validation.
This commit is contained in:
Erik Eckstein
2021-12-15 18:42:38 +01:00
parent 31a1c08083
commit c55f040308
13 changed files with 117 additions and 41 deletions

View File

@@ -215,7 +215,7 @@ public:
return 1;
if (OutputFilename == "-") {
writeAPIJSONFile(M, llvm::outs(), PrettyPrint);
writeAPIJSONFile(M, llvm::outs(), PrettyPrint, nullptr);
return 0;
}
@@ -227,7 +227,7 @@ public:
return 1;
}
writeAPIJSONFile(M, OS, PrettyPrint);
writeAPIJSONFile(M, OS, PrettyPrint, nullptr);
return 0;
}
};