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:
Adrian Prantl
2014-12-02 18:07:37 +00:00
parent 41a30f5988
commit 30976b2eb3
4 changed files with 13 additions and 7 deletions

View File

@@ -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");
}
}