[cfe-commits] r125806 - /cfe/trunk/lib/Frontend/ASTConsumers.cpp

Chris Lattner sabre at nondot.org
Thu Feb 17 16:52:55 PST 2011


Author: lattner
Date: Thu Feb 17 18:52:55 2011
New Revision: 125806

URL: http://llvm.org/viewvc/llvm-project?rev=125806&view=rev
Log:
handle labeldecls.

Modified:
    cfe/trunk/lib/Frontend/ASTConsumers.cpp

Modified: cfe/trunk/lib/Frontend/ASTConsumers.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/ASTConsumers.cpp?rev=125806&r1=125805&r2=125806&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/ASTConsumers.cpp (original)
+++ cfe/trunk/lib/Frontend/ASTConsumers.cpp Thu Feb 17 18:52:55 2011
@@ -359,8 +359,13 @@
       Out << "<IndirectField> " << IFD << '\n';
       break;
     }
+    case Decl::Label: {
+      LabelDecl *LD = cast<LabelDecl>(*I);
+      Out << "<Label> " << LD << '\n';
+      break;
+    }
     case Decl::Field: {
-      FieldDecl* FD = cast<FieldDecl>(*I);
+      FieldDecl *FD = cast<FieldDecl>(*I);
       Out << "<field> " << FD << '\n';
       break;
     }





More information about the cfe-commits mailing list