[PATCH] D45782: [DEBUGINFO, NVPTX] Allow to disable debug info from command line.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 19 11:27:53 PDT 2018


ABataev added a comment.

In https://reviews.llvm.org/D45782#1072437, @tra wrote:

> > `, debug` should be removed to enable opt level > 0. I checked the ptxas, without `, debug` it just ignores DWARF sections, but with `-lineinfo` option it may generate correct data for the `nvprof` from `.loc` and `.file` directives.
>
> Are you saying that enabling lineinfo debug also produces DWARF sections now and that's why we need the flag to ignore them if optimizations are enabled? Previously there was no need because we were emitting only .loc and .file.


Yes, currently it is impossible to emit `.loc` and `.file` directives without the emission of the DWARF sections as we're using general DebugInfo codebase. Later we could try to disable emission of the DWARF sections if it is not required.


Repository:
  rL LLVM

https://reviews.llvm.org/D45782





More information about the llvm-commits mailing list