From b7d1e1ff57bfebe306bd54368a2b62a9a0e168b3 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Sat, 2 Feb 2013 00:39:32 +0000 Subject: Revert r174246, accidentally committed. This reverts commit 1513eb9284c23acfd19cf742b95996fbb11ca741. llvm-svn: 174249 --- clang/lib/CodeGen/CGDecl.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'clang/lib/CodeGen/CGDecl.cpp') diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index 75b45cc28be..a43a38360b1 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/lib/CodeGen/CGDecl.cpp @@ -78,18 +78,14 @@ 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(D)); - } - return; - } + case Decl::Var: { const VarDecl &VD = cast(D); assert(VD.isLocalVarDecl() && -- cgit v1.2.3