[PATCH] D44384: [DEBUGINFO] Add -no-dwarf-debug-ranges option.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 12 11:11:33 PDT 2018


ABataev added inline comments.


================
Comment at: test/DebugInfo/X86/no_debug_ranges.ll:10-44
+; Function Attrs: noinline nounwind optnone uwtable
+define void @_Z2f1v() #0 section "a" !dbg !7 {
+entry:
+  ret void, !dbg !10
+}
+
+; Function Attrs: noinline nounwind optnone uwtable
----------------
dblaikie wrote:
> What's interesting about these 4 sections/6 functions, more than having two sections/functions? (trying to understand what nuances are being tested here - perhaps a comment in the test case would be helpful to explain the motivation)
Nothing special, I just copied an existing test that definitely produces ranges by default. Test just checks that with the flag `-no-dwarf-ranges-section` no .debug_ranges section is emitted. But I agree that it would be good to test how the addresses are emitted 


Repository:
  rL LLVM

https://reviews.llvm.org/D44384





More information about the llvm-commits mailing list