[PATCH] D42581: [NVPTX] Emit debug info in DWARF-2 by default for Cuda devices.
Artem Belevich via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 30 12:02:29 PST 2018
tra added inline comments.
================
Comment at: lib/Driver/ToolChains/Cuda.cpp:436-437
assert(Output.isNothing() && "Invalid output.");
- if (Args.hasArg(options::OPT_g_Flag))
+ if (mustEmitDebugInfo(Args) == FullDebug)
CmdArgs.push_back("-g");
----------------
Do we need to pass -g to make lineinfo debugging work?
Repository:
rC Clang
https://reviews.llvm.org/D42581
More information about the cfe-commits
mailing list