summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.h
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-05-20 22:50:41 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-05-20 22:50:41 +0000
commitf121b9302e2531e42565e49fafaf3d3f487422cc (patch)
treece67681d06fcbe49159e0be61bd49f7c0e2d90e9 /clang/lib/CodeGen/CGDebugInfo.h
parente63d5d1633b84bac7623967d1cbef19e3aeecc9d (diff)
downloadbcm5719-llvm-f121b9302e2531e42565e49fafaf3d3f487422cc.tar.gz
bcm5719-llvm-f121b9302e2531e42565e49fafaf3d3f487422cc.zip
PR14606: Debug Info for namespace aliases/DW_TAG_imported_module
This resolves the last of the PR14606 failures in the GDB 7.5 test suite. (but there are still unresolved issues in the imported_decl case - we need to implement optional/lazy decls for functions & variables like we already do for types) llvm-svn: 182329
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.h')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h
index f19f750e60f..cca6e1ba31c 100644
--- a/clang/lib/CodeGen/CGDebugInfo.h
+++ b/clang/lib/CodeGen/CGDebugInfo.h
@@ -101,6 +101,7 @@ class CGDebugInfo {
/// using declarations) that aren't covered by other more specific caches.
llvm::DenseMap<const Decl *, llvm::WeakVH> DeclCache;
llvm::DenseMap<const NamespaceDecl *, llvm::WeakVH> NameSpaceCache;
+ llvm::DenseMap<const NamespaceAliasDecl *, llvm::WeakVH> NamespaceAliasCache;
llvm::DenseMap<const Decl *, llvm::WeakVH> StaticDataMemberCache;
/// Helper functions for getOrCreateType.
@@ -277,6 +278,9 @@ public:
/// \brief - Emit C++ using declaration.
void EmitUsingDecl(const UsingDecl &UD);
+ /// \brief - Emit C++ namespace alias.
+ llvm::DIImportedEntity EmitNamespaceAlias(const NamespaceAliasDecl &NA);
+
/// getOrCreateRecordType - Emit record type's standalone debug info.
llvm::DIType getOrCreateRecordType(QualType Ty, SourceLocation L);
OpenPOWER on IntegriCloud