[PATCH] D42581: [NVPTX] Emit debug info in DWARF-2 by default for Cuda devices.
Alexey Bataev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 6 12:59:17 PST 2018
ABataev 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");
----------------
tra wrote:
> Do we need to pass -g to make lineinfo debugging work?
I checked with nvcc, it does not send `-g` in line table only mode.
Repository:
rC Clang
https://reviews.llvm.org/D42581
More information about the cfe-commits
mailing list