[PATCH] D59671: [lld] Prevent duplicate files in debug line header in dwarf 5.
Ali Tamur via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 21 15:04:39 PDT 2019
tamur created this revision.
Herald added subscribers: llvm-commits, MaskRay, arichardson, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.
Changes to a couple of tests that will start failing after https://reviews.llvm.org/D59515 is submitted.
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D59671
Files:
lld/test/ELF/debug-line-obj.s
lld/test/ELF/debug-line-str.s
Index: lld/test/ELF/debug-line-str.s
===================================================================
--- lld/test/ELF/debug-line-str.s
+++ lld/test/ELF/debug-line-str.s
@@ -27,8 +27,7 @@
main:
.Lfunc_begin0:
.file 0 "/home/path" "test.cpp" md5 0x8ed32099ab837bd13543fd3e8102739f
- .file 1 "test.cpp" md5 0x8ed32099ab837bd13543fd3e8102739f
- .loc 1 3 10 prologue_end
+ .loc 0 3 10 prologue_end
jmp _Z3foov
.Lfunc_end0:
Index: lld/test/ELF/debug-line-obj.s
===================================================================
--- lld/test/ELF/debug-line-obj.s
+++ lld/test/ELF/debug-line-obj.s
@@ -32,11 +32,10 @@
_Z3barv:
.Lfunc_begin0:
.file 0 "/path" "test.cpp" md5 0x9ff11a8404ab4d032ee2dd4f5f8c4140
- .file 1 "test.cpp" md5 0x9ff11a8404ab4d032ee2dd4f5f8c4140
- .loc 1 2 0 # test.cpp:2:0
- .loc 1 2 20 prologue_end # test.cpp:2:20
+ .loc 0 2 0 # test.cpp:2:0
+ .loc 0 2 20 prologue_end # test.cpp:2:20
callq _Z3foov
- .loc 1 2 13 is_stmt 0 # test.cpp:2:13
+ .loc 0 2 13 is_stmt 0 # test.cpp:2:13
.Lfunc_end0:
.size _Z3barv, .Lfunc_end0-_Z3barv
# -- End function
@@ -45,10 +44,10 @@
.type _Z3bazv, at function
_Z3bazv: # @_Z3bazv
.Lfunc_begin1:
- .loc 1 3 0 is_stmt 1 # test.cpp:3:0
- .loc 1 3 20 prologue_end # test.cpp:3:20
+ .loc 0 3 0 is_stmt 1 # test.cpp:3:0
+ .loc 0 3 20 prologue_end # test.cpp:3:20
callq _Z3foov
- .loc 1 3 13 is_stmt 0 # test.cpp:3:13
+ .loc 0 3 13 is_stmt 0 # test.cpp:3:13
.Lfunc_end1:
.size _Z3bazv, .Lfunc_end1-_Z3bazv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59671.191786.patch
Type: text/x-patch
Size: 1683 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190321/9d250864/attachment.bin>
More information about the llvm-commits
mailing list