diff options
| author | David Blaikie <dblaikie@gmail.com> | 2013-02-02 00:39:32 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2013-02-02 00:39:32 +0000 |
| commit | b7d1e1ff57bfebe306bd54368a2b62a9a0e168b3 (patch) | |
| tree | 3abe1dbef5cad46f91a4d85815d2e9ec8fa6b217 /clang/lib/CodeGen/CGDecl.cpp | |
| parent | cbf40d22bf98fb0d30b2c6a9e8a69aa601de2a1a (diff) | |
| download | bcm5719-llvm-b7d1e1ff57bfebe306bd54368a2b62a9a0e168b3.tar.gz bcm5719-llvm-b7d1e1ff57bfebe306bd54368a2b62a9a0e168b3.zip | |
Revert r174246, accidentally committed.
This reverts commit 1513eb9284c23acfd19cf742b95996fbb11ca741.
llvm-svn: 174249
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGDecl.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
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<UsingDirectiveDecl>(D)); - } - return; - } + case Decl::Var: { const VarDecl &VD = cast<VarDecl>(D); assert(VD.isLocalVarDecl() && |

