diff options
author | Chris Lattner <sabre@nondot.org> | 2011-02-18 02:08:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-02-18 02:08:43 +0000 |
commit | 43e7f31f11ab8a8ce941a720c8198c9094bea4ea (patch) | |
tree | 10a4fed274fe204f3b7c11910a663c60f9724795 /clang/lib/CodeGen/CGDecl.cpp | |
parent | 4ba77fa9761179098fe7d98141530f5f9f6863ee (diff) | |
download | bcm5719-llvm-43e7f31f11ab8a8ce941a720c8198c9094bea4ea.tar.gz bcm5719-llvm-43e7f31f11ab8a8ce941a720c8198c9094bea4ea.zip |
implement basic support for __label__. I wouldn't be shocked if there are
bugs from other clients that don't expect to see a LabelDecl in a DeclStmt,
but if so they should be easy to fix.
This implements most of PR3429 and rdar://8287027
llvm-svn: 125817
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index 97dbf0ba316..22f28197c60 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/lib/CodeGen/CGDecl.cpp @@ -70,7 +70,6 @@ void CodeGenFunction::EmitDecl(const Decl &D) { case Decl::Friend: case Decl::FriendTemplate: case Decl::Block: - case Decl::Label: assert(0 && "Declaration not should not be in declstmts!"); case Decl::Function: // void X(); case Decl::Record: // struct/union/class X; @@ -82,6 +81,7 @@ void CodeGenFunction::EmitDecl(const Decl &D) { case Decl::UsingDirective: // using namespace X; [C++] case Decl::NamespaceAlias: case Decl::StaticAssert: // static_assert(X, ""); [C++0x] + case Decl::Label: // __label__ x; // None of these decls require codegen support. return; |