[PATCH] D31464: [ELF] - Stop producing broken entries in .debug_ranges section

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 31 08:01:51 PDT 2017


jhenderson added a comment.

Could we reduce the size of the test by removing many of the debug info attributes? I don't know what dwarfdump requires, but I expect we could get rid of basically all the DW_AT_... entries except the DW_AT_ranges tag.



================
Comment at: test/ELF/debug-ranges-reloc.s:4
+# RUN: ld.lld %t1.o -o %t -gc-sections -e main
+# RUN: llvm-dwarfdump -debug-dump=all %t | FileCheck %s
+
----------------
We only need the -debug-dump=ranges, since we are only interested in the .debug_ranges output.


================
Comment at: test/ELF/debug-ranges-reloc.s:11
+
+.text
+.section .text._Z3aaav,"ax", at progbits
----------------
No need for this line.


================
Comment at: test/ELF/debug-ranges-reloc.s:13-15
+.globl _Z3aaav
+.type _Z3aaav, at function
+_Z3aaav:
----------------
I think we could get rid of these lines (similarly below in main).


https://reviews.llvm.org/D31464





More information about the llvm-commits mailing list