[PATCH] D46061: [DEBUGINFO, NVPTX] Disable emission of ', debug' option if only debug directives are allowed.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 5 11:12:30 PDT 2018


ABataev added a comment.

In https://reviews.llvm.org/D46061#1224055, @echristo wrote:

> Do you mean basically just line tables or something else? (Minus the need in normal dwarf for a minimal cu to associate the line table with). Also, how does this handle inlining etc?


When we have full debug info, we need to add `debug` option to the `target` directive. When we do not emit debug info or emit just debug directives (i.e. only lineinfo), this options should not be added to the `target` directive. Plus we need to render all the debug directives (`.line`|`.file`) to be able to get the correct data from the profiler.
The inlining is handled only in terms of files/location debug directives, nothing else.


Repository:
  rL LLVM

https://reviews.llvm.org/D46061





More information about the llvm-commits mailing list