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)
commitb2299f0c80f603b52e6e96cd01b9344ad5fc80a5
tree9df029b658304a219430105e7ab4bdc709e96355
parente18e76e4243ff8fbe5defc95152c66319b4b18a9
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.

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