diff options
| author | David Blaikie <dblaikie@gmail.com> | 2013-08-18 17:59:12 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2013-08-18 17:59:12 +0000 |
| commit | fcbeab6828268b7b044461e6406baab8d5a91577 (patch) | |
| tree | 027184d62767faa5efd2d53e4cd6d87bf4f645df /lib/CodeGen/CGVTables.cpp | |
| parent | 5b3ebb4356ac62abd8767c4c3388b773d9d61802 (diff) | |
| download | clang-fcbeab6828268b7b044461e6406baab8d5a91577.tar.gz clang-fcbeab6828268b7b044461e6406baab8d5a91577.tar.bz2 clang-fcbeab6828268b7b044461e6406baab8d5a91577.tar.xz | |
Revert "Revert "DebugInfo: Omit debug info for dynamic classes in TUs that do not have the vtable for that class""
This reverts commit r188600.
r188640/r188639 fixed the root cause of the crash-on-valid that r188600
originally introduced. This now appears to bootstrap debug clang
successfully to the best of my testing.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188642 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGVTables.cpp')
| -rw-r--r-- | lib/CodeGen/CGVTables.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CGVTables.cpp b/lib/CodeGen/CGVTables.cpp index c7bb54e069..6649578fc0 100644 --- a/lib/CodeGen/CGVTables.cpp +++ b/lib/CodeGen/CGVTables.cpp @@ -828,6 +828,9 @@ CodeGenVTables::GenerateClassData(const CXXRecordDecl *RD) { VFTContext->getVFPtrOffsets(RD); } + if (CGDebugInfo *DI = CGM.getModuleDebugInfo()) + DI->completeClassData(RD); + // First off, check whether we've already emitted the v-table and // associated stuff. llvm::GlobalVariable *VTable = GetAddrOfVTable(RD); |
