OSDN Git Service

[ObjectYAML] Fix issue with DWARF2 AddrSize 8
authorChris Bieneman <beanz@apple.com>
Tue, 7 Mar 2017 21:34:35 +0000 (21:34 +0000)
committerChris Bieneman <beanz@apple.com>
Tue, 7 Mar 2017 21:34:35 +0000 (21:34 +0000)
commitf4f71cd77b30788f85c87b13934061d77eaa5b25
treef5694ab42d5e614221a86a96dda18ae248e4008d
parent908d8eeae9d8186890feb1c6da72af7327f43095
[ObjectYAML] Fix issue with DWARF2 AddrSize 8

In my refactoring I introduced a bug where we were using the reference size instead of the offset size for DW_FORM_strp and similar forms.

This patch resolves the error and adds a test case testing all the DWARF forms for DWARF2 AddrSize 8. There is similar coverage already in the DWARFDebugInfoTest sources that covers the parser. Once I migrate the DWARFGenerator APIs to be built on the YAML tools they will be fully covered under the same tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297230 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ObjectYAML/DWARFVisitor.cpp
test/ObjectYAML/MachO/DWARF2-AddrSize8-FormValues.yaml [new file with mode: 0644]