Fix the clang-cl self-host build by defining ~DwarfDebug out of line
authorReid Kleckner <reid@kleckner.net>
Wed, 30 Apr 2014 20:34:31 +0000 (20:34 +0000)
committerReid Kleckner <reid@kleckner.net>
Wed, 30 Apr 2014 20:34:31 +0000 (20:34 +0000)
commit79844fc3d269d2fccee1de3e0b8b6c374ce63ff2
tree223b8683b08ebb65e11e6278c2e27eef32dbd8bf
parent6f327421c541abbfcc3f35afddaae0bc3a0317b8
Fix the clang-cl self-host build by defining ~DwarfDebug out of line

DwarfDebug.h has a SmallVector member containing a unique_ptr of an
incomplete type.  MSVC doesn't have key functions, so the vtable and
dtor are emitted in AsmPrinter.cpp, where DwarfDebug's ctor is called.
AsmPrinter.cpp include DwarfUnit.h and doesn't get a complete definition
of DwarfTypeUnit.  We could fix the problem by including DwarfUnit.h in
DwarfDebug.h, but that would increase header bloat.  Instead, define
~DwarfDebug out of line.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207701 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h