Revert r198199 (and r198202). It broke 3 DebugInfo tests for targeting i686-cygming.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 30 Dec 2013 09:26:10 +0000 (09:26 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 30 Dec 2013 09:26:10 +0000 (09:26 +0000)
commit17b731085859cdf08792821f5439986dc7c00e65
tree8d3ac7502ca586a8b4d069449b1f3b77b3574106
parente93e87369fd46a3aa6db5b106ba78749269cc8fb
Revert r198199 (and r198202). It broke 3 DebugInfo tests for targeting i686-cygming.

  r198196: Use a pointer to keep track of the skeleton unit for each normal unit and construct it up front.
  r198199: Reapply r198196 with a fix to zero initialize the skeleton pointer.
  r198202: 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.

They could be reproducible with explicit target.

  llvm/lib/MC/WinCOFFObjectWriter.cpp:224: bool {anonymous}::COFFSymbol::should_keep() const: Assertion `Section->Number != -1 && "Sections with relocations must be real!"' failed.

llvm-svn: 198208
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
llvm/test/DebugInfo/X86/arange.ll
llvm/test/DebugInfo/X86/fission-cu.ll
llvm/test/DebugInfo/X86/stmt-list-multiple-compile-units.ll