diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-04-19 07:04:02 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-04-19 07:04:02 +0000 |
commit | cf5e5bade1638d5f2e2f8c1f808a5150f4208ba2 (patch) | |
tree | a4dd1c774db9d44dca59fe14c42824d9e4051acb /clang/lib/CodeGen/CGDecl.cpp | |
parent | 88564f3cf7dc3f9d925cdcc181e885e893b8bb6f (diff) | |
download | llvm-cf5e5bade1638d5f2e2f8c1f808a5150f4208ba2.zip llvm-cf5e5bade1638d5f2e2f8c1f808a5150f4208ba2.tar.gz llvm-cf5e5bade1638d5f2e2f8c1f808a5150f4208ba2.tar.bz2 |
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/CGDecl.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDecl.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index 9ad9cf0..3ce6dec 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/lib/CodeGen/CGDecl.cpp @@ -80,7 +80,6 @@ void CodeGenFunction::EmitDecl(const Decl &D) { case Decl::CXXRecord: // struct/union/class X; [C++] case Decl::Using: // using X; [C++] case Decl::UsingShadow: - case Decl::UsingDirective: // using namespace X; [C++] case Decl::NamespaceAlias: case Decl::StaticAssert: // static_assert(X, ""); [C++0x] case Decl::Label: // __label__ x; @@ -90,6 +89,10 @@ void CodeGenFunction::EmitDecl(const Decl &D) { // None of these decls require codegen support. return; + case Decl::UsingDirective: // using namespace X; [C++] + if (CGDebugInfo *DI = getDebugInfo()) + DI->EmitUsingDirective(cast<UsingDirectiveDecl>(D)); + return; case Decl::Var: { const VarDecl &VD = cast<VarDecl>(D); assert(VD.isLocalVarDecl() && |