]> granicus.if.org Git - llvm/commit
dsymutil: support dwarf version mismatches between object and clang module
authorAdrian Prantl <aprantl@apple.com>
Tue, 8 Aug 2017 18:26:12 +0000 (18:26 +0000)
committerAdrian Prantl <aprantl@apple.com>
Tue, 8 Aug 2017 18:26:12 +0000 (18:26 +0000)
commitf3855901e0f1404a8bae20e4c788281d66cecf29
treea6264d6a5f50b4a6bd0c7379330d9253dec1da7a
parent04285488393616bbb9c13960af2db5b90f7b498c
dsymutil: support dwarf version mismatches between object and clang module

This adds a missing call to maybeUpdateMaxDwarfVersion when visitng a
clang module. Failing to do so will cause a failure when emitting
DWARF 4 forms into a CU that AsmPrinter believes to be DWARF 2.

rdar://problem/33666528

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310392 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/dsymutil/Inputs/modules-dwarf-version/1.o [new file with mode: 0644]
test/tools/dsymutil/X86/modules-dwarf-version.m [new file with mode: 0644]
tools/dsymutil/DwarfLinker.cpp