[cfe-commits] r166171 - /cfe/trunk/lib/AST/DumpXML.cpp
Nick Lewycky
nicholas at mxc.ca
Thu Oct 18 00:55:46 PDT 2012
Author: nicholas
Date: Thu Oct 18 02:55:46 2012
New Revision: 166171
URL: http://llvm.org/viewvc/llvm-project?rev=166171&view=rev
Log:
Put used="1" on all used declarations in the XML dumper. This allows us to
start seeing the bit so that we can find bugs and write tests for it.
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=166171&r1=166170&r2=166171&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DumpXML.cpp (original)
+++ cfe/trunk/lib/AST/DumpXML.cpp Thu Oct 18 02:55:46 2012
@@ -1,4 +1,4 @@
-//===--- DumpXML.cpp - Detailed XML dumping ---------------------*- C++ -*-===//
+//===--- DumpXML.cpp - Detailed XML dumping -------------------------------===//
//
// The LLVM Compiler Infrastructure
//
@@ -64,6 +64,8 @@
static_cast<Impl*>(this)->NAME(static_cast<CLASS*>(D))
void dispatch(Decl *D) {
+ if (D->isUsed())
+ static_cast<Impl*>(this)->set("used", "1");
switch (D->getKind()) {
#define DECL(DERIVED, BASE) \
case Decl::DERIVED: \
More information about the cfe-commits
mailing list