diff options
author | Adrian McCarthy <amccarth@google.com> | 2016-07-06 15:15:38 +0000 |
---|---|---|
committer | Adrian McCarthy <amccarth@google.com> | 2016-07-06 15:15:38 +0000 |
commit | 743f7f1aff3b35f787b4b8e2974fd14ce4019926 (patch) | |
tree | 0a97f11d6931d9d51c205a69eea49ae73fb346d6 /clang/lib/CodeGen | |
parent | 7649d8388a697e1cf9ad062ebdc8c85a47f56c5d (diff) | |
download | bcm5719-llvm-743f7f1aff3b35f787b4b8e2974fd14ce4019926.tar.gz bcm5719-llvm-743f7f1aff3b35f787b4b8e2974fd14ce4019926.zip |
Revert "Include debug info for nested structs and classes"
This reverts commit 0af5ee9631c7c167dc40498b415876553e314c95.
llvm-svn: 274633
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 14 | ||||
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.h | 2 |
2 files changed, 2 insertions, 14 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 661c888b07b..d51e1d978bb 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), diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h index 70c16462965..366dd81ac81 100644 --- a/clang/lib/CodeGen/CGDebugInfo.h +++ b/clang/lib/CodeGen/CGDebugInfo.h @@ -254,8 +254,6 @@ class CGDebugInfo { llvm::DIFile *F, SmallVectorImpl<llvm::Metadata *> &E, llvm::DIType *RecordTy, const RecordDecl *RD); - void CollectRecordNestedRecord(const RecordDecl *RD, - SmallVectorImpl<llvm::Metadata *> &E); void CollectRecordFields(const RecordDecl *Decl, llvm::DIFile *F, SmallVectorImpl<llvm::Metadata *> &E, llvm::DICompositeType *RecordTy); |