mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Pass around arguments for primary-specific filenames.
Get rid of IRGenOpts attributes that won’t work for batch mode and also remove fakeNamesStub.
This commit is contained in:
@@ -829,18 +829,6 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
|
||||
if (Args.hasArg(OPT_autolink_force_load))
|
||||
Opts.ForceLoadSymbolName = Args.getLastArgValue(OPT_module_link_name);
|
||||
|
||||
// TODO: investigate whether these should be removed, in favor of definitions
|
||||
// in other classes.
|
||||
if (!SILOpts.SILOutputFileNameForDebugging.empty()) {
|
||||
Opts.MainInputFilename = SILOpts.SILOutputFileNameForDebugging;
|
||||
} else if (const InputFile *input =
|
||||
FrontendOpts.InputsAndOutputs.getUniquePrimaryInput()) {
|
||||
Opts.MainInputFilename = input->file();
|
||||
} else if (FrontendOpts.InputsAndOutputs.hasSingleInput()) {
|
||||
Opts.MainInputFilename =
|
||||
FrontendOpts.InputsAndOutputs.getFilenameOfFirstInput();
|
||||
}
|
||||
Opts.OutputFilenames = FrontendOpts.InputsAndOutputs.copyOutputFilenames();
|
||||
Opts.ModuleName = FrontendOpts.ModuleName;
|
||||
|
||||
if (Args.hasArg(OPT_use_jit))
|
||||
|
||||
Reference in New Issue
Block a user