mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
No need to emit a Swift module in -gline-tables-only mode.
Thanks Jordan for pointing this out! Swift SVN r23616
This commit is contained in:
@@ -911,17 +911,17 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
|
||||
Opts.DebugInfoKind = IRGenDebugInfoKind::Normal;
|
||||
else if (A->getOption().matches(options::OPT_gline_tables_only))
|
||||
Opts.DebugInfoKind = IRGenDebugInfoKind::LineTables;
|
||||
else
|
||||
assert(A->getOption().matches(options::OPT_gnone) &&
|
||||
"unknown -g<kind> option");
|
||||
|
||||
if (Opts.DebugInfoKind > IRGenDebugInfoKind::None) {
|
||||
if (Opts.DebugInfoKind == IRGenDebugInfoKind::Normal) {
|
||||
ArgStringList RenderedArgs;
|
||||
for (auto A : Args)
|
||||
A->render(Args, RenderedArgs);
|
||||
CompilerInvocation::buildDWARFDebugFlags(Opts.DWARFDebugFlags,
|
||||
RenderedArgs, SDKPath,
|
||||
ResourceDir);
|
||||
} else {
|
||||
assert(A->getOption().matches(options::OPT_gnone) &&
|
||||
"unknown -g<kind> option");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user