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 | 60a9fbf92152293b0ddfd8dae9bc612c92811a49 (patch) | |
tree | b9bb619ac88d035e6494d88a2affbeea0ae895af /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 13306816fc9d55cef01b11d43b65ca79044f11aa (diff) | |
download | bcm5719-llvm-60a9fbf92152293b0ddfd8dae9bc612c92811a49.tar.gz bcm5719-llvm-60a9fbf92152293b0ddfd8dae9bc612c92811a49.zip |
Support debug info for using directives at global/namespace scope.
llvm-svn: 180594
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 5a10602589f..bf67bd1007a 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/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() || |