mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
IRGen: Create a new IRGenModule constructor for dummy instances
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user