[dsymutil] Relocate DW_TAG_label
authorJonas Devlieghere <jonas@devlieghere.com>
Mon, 29 Mar 2021 19:35:17 +0000 (12:35 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Mon, 29 Mar 2021 22:45:48 +0000 (15:45 -0700)
commite0577b3130a646b0ee090c04a40400483031c7a9
treeeb919873f2bc9f9217abc18371d125fe225324b8
parent984e2f440aa4c9c3603840e4f8f09073a54e4849
[dsymutil] Relocate DW_TAG_label

dsymutil is not relocating the DW_AT_low_pc for a DW_TAG_label. This
patch fixes that and adds a test.

Differential revision: https://reviews.llvm.org/D99534
llvm/lib/DWARFLinker/DWARFLinker.cpp
llvm/test/tools/dsymutil/Inputs/private/tmp/label/label.o [new file with mode: 0644]
llvm/test/tools/dsymutil/Inputs/private/tmp/label/label.out [new file with mode: 0755]
llvm/test/tools/dsymutil/X86/label2.test [new file with mode: 0644]