aboutsummaryrefslogtreecommitdiff
path: root/clang/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
commit3669c3c603a8e5ec15d5380b0cb9b803e5ca5ac0 (patch)
tree2972e5dd29ef55cf9d5b4ad17a36210493477924 /clang/lib/CodeGen/CGDecl.cpp
parent3dbf346ef358004c213774c7bb83e47687ced102 (diff)
downloadllvm-3669c3c603a8e5ec15d5380b0cb9b803e5ca5ac0.zip
llvm-3669c3c603a8e5ec15d5380b0cb9b803e5ca5ac0.tar.gz
llvm-3669c3c603a8e5ec15d5380b0cb9b803e5ca5ac0.tar.bz2
Revert "PR14606: Debug info for using directives/DW_TAG_imported_module"
This reverts commit r179837 as it seems to be causing test failures. llvm-svn: 179839
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
-rw-r--r--clang/lib/CodeGen/CGDecl.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp
index 3ce6dec..9ad9cf0 100644
--- a/clang/lib/CodeGen/CGDecl.cpp
+++ b/clang/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() &&