Fix aranges and split dwarf by ensuring that the symbol and relocation
authorEric Christopher <echristo@gmail.com>
Mon, 30 Dec 2013 05:25:49 +0000 (05:25 +0000)
committerEric Christopher <echristo@gmail.com>
Mon, 30 Dec 2013 05:25:49 +0000 (05:25 +0000)
commit782b70f4b3f1ba68ec26ed99a1a5c095adf80298
tree0dde296ca86882681f44d0b17f771c575326008a
parent8e58e03822fc0aae8c1fb335611315f897ab0962
Fix aranges and split dwarf by ensuring that the symbol and relocation
back to the compile unit from the aranges section is to the skeleton
unit and not the one in the dwo.

Do this by adding a method to grab a forwarded on local sym and local
section by querying the skeleton if one exists and using that. Add
a few tests to verify the relocations are back to the correct section.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198202 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h
lib/CodeGen/AsmPrinter/DwarfUnit.h
test/DebugInfo/X86/arange.ll
test/DebugInfo/X86/fission-cu.ll