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

Artem Belevich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 19 11:18:08 PDT 2018


tra added a comment.

> `, 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.


Repository:
  rL LLVM

https://reviews.llvm.org/D45782





More information about the llvm-commits mailing list