summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-04-22 06:13:21 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-04-22 06:13:21 +0000
commit9f88fe865c51efa44d5c35d1afd4c4e313a5e26e (patch)
treea3139c6c59b51b83bcbb5b7d4f429faa56f0168a /clang/lib/CodeGen/CGDebugInfo.cpp
parentf55abeaf4c2489106ccf4defdb1ebbd9a5d8b1ef (diff)
downloadbcm5719-llvm-9f88fe865c51efa44d5c35d1afd4c4e313a5e26e.tar.gz
bcm5719-llvm-9f88fe865c51efa44d5c35d1afd4c4e313a5e26e.zip
Revert "Revert "PR14606: Debug info for using directives/DW_TAG_imported_module""
This reverts commit 179839 now that the corresponding LLVM patch has been fixed. llvm-svn: 179997
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 45692312e0c..6beba66c79a 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