Add SIL re-ingest test

This commit is contained in:
elsh
2021-10-14 19:03:31 -07:00
parent e1dfdba1e6
commit e3d5ae0172
3 changed files with 132 additions and 4 deletions

View File

@@ -1105,9 +1105,8 @@ void Serializer::writeHeader(const SerializationOptions &options) {
static void flattenImportPath(const ImportedModule &import,
SmallVectorImpl<char> &out) {
llvm::raw_svector_ostream outStream(out);
// Write module 'real name' (returned by getReverseFullModuleName),
// which can be different from 'name' in case module aliasing was
// used (-module-alias flag)
// This will write the module 'real name', which can be different
// from the 'name' in case module aliasing was used (see `-module-alias`)
import.importedModule->getReverseFullModuleName().printForward(
outStream, StringRef("\0", 1));