summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-04-19 07:04:02 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-04-19 07:04:02 +0000
commitcf5e5bade1638d5f2e2f8c1f808a5150f4208ba2 (patch)
treea4dd1c774db9d44dca59fe14c42824d9e4051acb /clang/lib/CodeGen/CGDebugInfo.cpp
parent88564f3cf7dc3f9d925cdcc181e885e893b8bb6f (diff)
downloadbcm5719-llvm-cf5e5bade1638d5f2e2f8c1f808a5150f4208ba2.tar.gz
bcm5719-llvm-cf5e5bade1638d5f2e2f8c1f808a5150f4208ba2.zip
PR14606: Debug info for using directives/DW_TAG_imported_module
More changes later for using declarations/DW_TAG_imported_declaration. llvm-svn: 179837
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index dedf6018aa0..589528ee1af 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -2929,6 +2929,13 @@ void CGDebugInfo::EmitGlobalVariable(const ValueDecl *VD,
getStaticDataMemberDeclaration(VD));
}
+void CGDebugInfo::EmitUsingDirective(const UsingDirectiveDecl &UD) {
+ DBuilder.createImportedModule(
+ getContextDescriptor(cast<Decl>(UD.getDeclContext())),
+ getOrCreateNameSpace(UD.getNominatedNamespace()),
+ getLineNumber(UD.getLocation()));
+}
+
/// getOrCreateNamesSpace - Return namespace descriptor for the given
/// namespace decl.
llvm::DINameSpace
OpenPOWER on IntegriCloud