[cfe-commits] r72615 - /cfe/trunk/lib/AST/DeclPrinter.cpp
Eli Friedman
eli.friedman at gmail.com
Fri May 29 23:35:22 PDT 2009
Author: efriedma
Date: Sat May 30 01:35:22 2009
New Revision: 72615
URL: http://llvm.org/viewvc/llvm-project?rev=72615&view=rev
Log:
Add a hack to prevent us from printing out the __builtin_va_list
declaration in -ast-print mode.
Modified:
cfe/trunk/lib/AST/DeclPrinter.cpp
Modified: cfe/trunk/lib/AST/DeclPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclPrinter.cpp?rev=72615&r1=72614&r2=72615&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DeclPrinter.cpp (original)
+++ cfe/trunk/lib/AST/DeclPrinter.cpp Sat May 30 01:35:22 2009
@@ -178,6 +178,11 @@
if (!Policy.Dump) {
// Skip over implicit declarations in pretty-printing mode.
if (D->isImplicit()) continue;
+ // FIXME: Ugly hack so we don't pretty-print the builtin declaration
+ // of __builtin_va_list. There should be some other way to check that.
+ if (isa<NamedDecl>(*D) && cast<NamedDecl>(*D)->getNameAsString() ==
+ "__builtin_va_list")
+ continue;
}
// The next bits of code handles stuff like "struct {int x;} a,b"; we're
More information about the cfe-commits
mailing list