diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-02-02 00:34:16 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-02-02 00:34:16 +0000 |
commit | 1513eb9284c23acfd19cf742b95996fbb11ca741 (patch) | |
tree | 7840b8d0b6fe4486d7ad87cc80903912350c3440 /lib/CodeGen/CGDecl.cpp | |
parent | 453cb859a3c8dcafe79ae840dfc35ff8eae1b4b3 (diff) |
Basics
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174246 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | lib/CodeGen/CGDecl.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp index a43a38360b..75b45cc28b 100644 --- a/lib/CodeGen/CGDecl.cpp +++ b/lib/CodeGen/CGDecl.cpp @@ -78,14 +78,18 @@ 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; case Decl::Import: // None of these decls require codegen support. return; - + case Decl::UsingDirective: { // using namespace X; [C++] + if (CGDebugInfo *DI = getDebugInfo()) { + DI->EmitUsingDirectiveDecl(cast<UsingDirectiveDecl>(D)); + } + return; + } case Decl::Var: { const VarDecl &VD = cast<VarDecl>(D); assert(VD.isLocalVarDecl() && |