summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGVTables.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-08-18 17:59:12 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-08-18 17:59:12 +0000
commit25b2085490aaf5370b4d18e5d91ccd55f21bf110 (patch)
treeaac79860480da17405335a178387d6fd8a3009bd /clang/lib/CodeGen/CGVTables.cpp
parent5a050016bb8e33f8e53b1fe05de7adb8ff00d4aa (diff)
downloadbcm5719-llvm-25b2085490aaf5370b4d18e5d91ccd55f21bf110.tar.gz
bcm5719-llvm-25b2085490aaf5370b4d18e5d91ccd55f21bf110.zip
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. llvm-svn: 188642
Diffstat (limited to 'clang/lib/CodeGen/CGVTables.cpp')
-rw-r--r--clang/lib/CodeGen/CGVTables.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGVTables.cpp b/clang/lib/CodeGen/CGVTables.cpp
index c7bb54e0699..6649578fc09 100644
--- a/clang/lib/CodeGen/CGVTables.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud