[NFC] Grab the private discriminator for a file in IRGenDebugInfo

This was being done at an odd point in the frontend presumably because by that point the private discriminator had been fully computed.  Instead, push the conditions for generating the prefix data down to debug info generation and stop mutating IRGenOptions::DebugFlag in the frontend.
This commit is contained in:
Robert Widmann
2020-01-10 11:17:05 -08:00
parent fad29a306c
commit eb61931012
10 changed files with 52 additions and 40 deletions

View File

@@ -284,6 +284,7 @@ namespace swift {
performIRGeneration(IRGenOptions &Opts, SourceFile &SF,
std::unique_ptr<SILModule> SILMod,
StringRef ModuleName, const PrimarySpecificPaths &PSPs,
StringRef PrivateDiscriminator,
llvm::LLVMContext &LLVMContext,
llvm::GlobalVariable **outModuleHash = nullptr,
llvm::StringSet<> *LinkerDirectives = nullptr);