]> granicus.if.org Git - clang/commitdiff
Include assembler label for functions in the XML dump
authorJoerg Sonnenberger <joerg@bec.de>
Fri, 13 May 2011 21:10:39 +0000 (21:10 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Fri, 13 May 2011 21:10:39 +0000 (21:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131310 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/DumpXML.cpp

index 9bb3807c1d9239cbbf6bca5e85fa494858732389..12806aad1d7809681411eb4d44b584e4fd260721 100644 (file)
@@ -487,6 +487,8 @@ struct XMLDumper : public XMLDeclVisitor<XMLDumper>,
       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) {