diff options
author | Adrian McCarthy <amccarth@google.com> | 2016-07-06 23:28:34 +0000 |
---|---|---|
committer | Adrian McCarthy <amccarth@google.com> | 2016-07-06 23:28:34 +0000 |
commit | 20128d94e5494104294719b3938e18ee9c6f2b48 (patch) | |
tree | d936e22ca1edea1c4f2513ba68b6e22949148b58 /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | b025d375a154a9faf1d27f0d281fd92c91d34a65 (diff) | |
download | bcm5719-llvm-20128d94e5494104294719b3938e18ee9c6f2b48.tar.gz bcm5719-llvm-20128d94e5494104294719b3938e18ee9c6f2b48.zip |
Revert "Retry "Include debug info for nested structs and classes""
Reverting because it causes a test failure on build bots (Modules/ModuleDebugInfo.cpp). Failure does not reproduce locally.
svn revision: rL274698
This reverts commit 3c5ed6599b086720aab5b8bd6941149d066806a6.
llvm-svn: 274706
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index f7e3c43259f..5e829cc1229 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -1095,13 +1095,6 @@ void CGDebugInfo::CollectRecordNormalField( elements.push_back(FieldType); } -void CGDebugInfo::CollectRecordNestedRecord( - const RecordDecl *RD, SmallVectorImpl<llvm::Metadata *> &elements) { - QualType Ty = CGM.getContext().getTypeDeclType(RD); - llvm::DIType *nestedType = getOrCreateType(Ty, getOrCreateMainFile()); - elements.push_back(nestedType); -} - void CGDebugInfo::CollectRecordFields( const RecordDecl *record, llvm::DIFile *tunit, SmallVectorImpl<llvm::Metadata *> &elements, @@ -1138,9 +1131,6 @@ void CGDebugInfo::CollectRecordFields( // Bump field number for next field. ++fieldNo; - } else if (const auto *nestedRec = dyn_cast<CXXRecordDecl>(I)) { - if (!nestedRec->isImplicit() && nestedRec->getDeclContext() == record) - CollectRecordNestedRecord(nestedRec, elements); } } } @@ -3643,8 +3633,8 @@ void CGDebugInfo::EmitUsingDirective(const UsingDirectiveDecl &UD) { if (CGM.getCodeGenOpts().getDebugInfo() < codegenoptions::LimitedDebugInfo) return; const NamespaceDecl *NSDecl = UD.getNominatedNamespace(); - if (!NSDecl->isAnonymousNamespace() || - CGM.getCodeGenOpts().DebugExplicitImport) { + if (!NSDecl->isAnonymousNamespace() || + CGM.getCodeGenOpts().DebugExplicitImport) { DBuilder.createImportedModule( getCurrentContextDescriptor(cast<Decl>(UD.getDeclContext())), getOrCreateNameSpace(NSDecl), |