[cfe-commits] r131310 - /cfe/trunk/lib/AST/DumpXML.cpp

Joerg Sonnenberger joerg at bec.de
Fri May 13 14:10:39 PDT 2011


Author: joerg
Date: Fri May 13 16:10:39 2011
New Revision: 131310

URL: http://llvm.org/viewvc/llvm-project?rev=131310&view=rev
Log:
Include assembler label for functions in the XML dump

Modified:
    cfe/trunk/lib/AST/DumpXML.cpp

Modified: cfe/trunk/lib/AST/DumpXML.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DumpXML.cpp?rev=131310&r1=131309&r2=131310&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DumpXML.cpp (original)
+++ cfe/trunk/lib/AST/DumpXML.cpp Fri May 13 16:10:39 2011
@@ -487,6 +487,8 @@
       set("storage",
           VarDecl::getStorageClassSpecifierString(D->getStorageClass()));
     setFlag("inline", D->isInlineSpecified());
+    if (const AsmLabelAttr *ALA = D->getAttr<AsmLabelAttr>())
+      set("asmlabel", ALA->getLabel());
     // TODO: instantiation, etc.
   }
   void visitFunctionDeclChildren(FunctionDecl *D) {





More information about the cfe-commits mailing list