[PATCH] D48730: [DEBUG_INFO, NVPTX] Do not emit .debug_loc section.

Paul Robinson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 28 12:47:36 PDT 2018


probinson added a comment.

This seems rather drastic.  Nearly all variables will be reported as "optimized away" at any optimization level above -O0.
Have you looked at whether you can identify a single preferred location for the variable?



================
Comment at: lib/CodeGen/AsmPrinter/DwarfDebug.cpp:1201
     }
+    // Do not emit location lists is .debug_loc secton is disabled.
+    if (!useLocSection())
----------------
Typos:  ... if .debug_loc section ...


Repository:
  rL LLVM

https://reviews.llvm.org/D48730





More information about the llvm-commits mailing list