diff options
| author | David Blaikie <dblaikie@gmail.com> | 2013-08-20 01:28:15 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2013-08-20 01:28:15 +0000 |
| commit | 5434fc29cb3ddbd0466b10a40ac0485f4cd7bc74 (patch) | |
| tree | 70a03d0ea18cb76017aeb2772dc3e9739987a367 /lib/CodeGen/CGVTables.cpp | |
| parent | 13b572c9e84729b4bd5f00d0f1452a4b93211cde (diff) | |
| download | clang-5434fc29cb3ddbd0466b10a40ac0485f4cd7bc74.tar.gz clang-5434fc29cb3ddbd0466b10a40ac0485f4cd7bc74.tar.bz2 clang-5434fc29cb3ddbd0466b10a40ac0485f4cd7bc74.tar.xz | |
Revert "Revert "Revert "Revert "DebugInfo: Omit debug info for dynamic classes in TUs that do not have the vtable for that class""""
This reverts commit r188687 (reverts r188642 (reverts 188600 (reverts
188576))).
With added test coverage & fix for -gline-tables-only.
Thanks Michael Gottesman for reverting this patch when it demonstrated
problems & providing a reproduction/details to help me track this down.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188739 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); |
