aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGDecl.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-04-19 07:46:36 +0000
committerEric Christopher <echristo@gmail.com>2013-04-19 07:46:36 +0000
commitc3e81e78e8b1d5ba3df2d5801841b4fbc53c1bd8 (patch)
tree83959a4cdb5acd128f7982fa541a04c0f6022fbe /lib/CodeGen/CGDecl.cpp
parentcec39845823bb051de7ae86bb9528c57547ec4cf (diff)
Revert "PR14606: Debug info for using directives/DW_TAG_imported_module"
This reverts commit r179837 as it seems to be causing test failures. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179839 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDecl.cpp')
-rw-r--r--lib/CodeGen/CGDecl.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp
index 3ce6dec6a5..9ad9cf022c 100644
--- a/lib/CodeGen/CGDecl.cpp
+++ b/lib/CodeGen/CGDecl.cpp
@@ -80,6 +80,7 @@ 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;
@@ -89,10 +90,6 @@ 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() &&