diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-04-22 06:13:21 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-04-22 06:13:21 +0000 |
commit | 957dac5b6d826bc0c10011c8b5c3f1b8007fda41 (patch) | |
tree | 07b3d40d91b99aa84518e4602cd12dd7f6b69254 /lib/CodeGen/CGDebugInfo.cpp | |
parent | 9c6a114d4271ab0e3800de1d3407f994dadd240e (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179997 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 45692312e0..6beba66c79 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/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 |