Only pass output filename and main input file name for debugging into IRGenModule constructor.

This commit is contained in:
David Ungar
2018-02-15 16:39:30 -07:00
parent dec78900cd
commit 026b850d0c
6 changed files with 34 additions and 35 deletions

View File

@@ -68,9 +68,8 @@ private:
: SILMod(SILModule::createEmptyModule(module, SILOpts)),
IRGen(IROpts, *SILMod),
IGM(IRGen, IRGen.createTargetMachine(), /*SourceFile*/ nullptr,
LLVMContext, "<fake module name>",
PrimarySpecificPaths("<fake output filename>",
"<fake main input filename>")) {}
LLVMContext, "<fake module name>", "<fake output filename>",
"<fake main input filename>") {}
public:
static std::unique_ptr<IRGenContext>