IRGen: Create a new IRGenModule constructor for dummy instances

This commit is contained in:
Slava Pestov
2018-07-25 17:48:36 -07:00
parent 2d17ea34f4
commit bb59562192
2 changed files with 11 additions and 5 deletions

View File

@@ -68,9 +68,7 @@ private:
: IROpts(createIRGenOptions()),
SILMod(SILModule::createEmptyModule(module, SILOpts)),
IRGen(IROpts, *SILMod),
IGM(IRGen, IRGen.createTargetMachine(), /*SourceFile*/ nullptr,
LLVMContext, "<fake module name>", "<fake output filename>",
"<fake main input filename>") {}
IGM(IRGen, IRGen.createTargetMachine(), LLVMContext) {}
static IRGenOptions createIRGenOptions() {
IRGenOptions IROpts;