diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-04-26 05:41:06 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-04-26 05:41:06 +0000 |
commit | 1601a4a5da8b895fa598efc9e0e736aae5bf00c5 (patch) | |
tree | a86da6eb716c849bcc5166e33f9cf02e19cb8601 /lib/CodeGen/CodeGenModule.cpp | |
parent | e5e575ded9cd4b80229fb299a2d97e9d44728eda (diff) |
Support debug info for using directives at global/namespace scope.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180594 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 5a10602589..bf67bd1007 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -2819,7 +2819,6 @@ void CodeGenModule::EmitTopLevelDecl(Decl *D) { // No code generation needed. case Decl::UsingShadow: case Decl::Using: - case Decl::UsingDirective: case Decl::ClassTemplate: case Decl::FunctionTemplate: case Decl::TypeAliasTemplate: @@ -2827,6 +2826,10 @@ void CodeGenModule::EmitTopLevelDecl(Decl *D) { case Decl::Block: case Decl::Empty: break; + case Decl::UsingDirective: // using namespace X; [C++] + if (CGDebugInfo *DI = getModuleDebugInfo()) + DI->EmitUsingDirective(cast<UsingDirectiveDecl>(*D)); + return; case Decl::CXXConstructor: // Skip function templates if (cast<FunctionDecl>(D)->getDescribedFunctionTemplate() || |