[cfe-commits] r72605 - in /cfe/trunk/lib/AST: StmtPrinter.cpp Type.cpp
Eli Friedman
eli.friedman at gmail.com
Fri May 29 18:45:29 PDT 2009
Author: efriedma
Date: Fri May 29 20:45:29 2009
New Revision: 72605
URL: http://llvm.org/viewvc/llvm-project?rev=72605&view=rev
Log:
Fix some test failures involving -ast-print.
Modified:
cfe/trunk/lib/AST/StmtPrinter.cpp
cfe/trunk/lib/AST/Type.cpp
Modified: cfe/trunk/lib/AST/StmtPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/StmtPrinter.cpp?rev=72605&r1=72604&r2=72605&view=diff
==============================================================================
--- cfe/trunk/lib/AST/StmtPrinter.cpp (original)
+++ cfe/trunk/lib/AST/StmtPrinter.cpp Fri May 29 20:45:29 2009
@@ -255,6 +255,11 @@
if (TD)
++Begin;
+ if (Begin == End) {
+ PrintRawDecl(TD);
+ return;
+ }
+
if (isa<TypedefDecl>(*Begin))
OS << "typedef ";
else if (VarDecl *V = dyn_cast<VarDecl>(*Begin)) {
Modified: cfe/trunk/lib/AST/Type.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Type.cpp?rev=72605&r1=72604&r2=72605&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Type.cpp (original)
+++ cfe/trunk/lib/AST/Type.cpp Fri May 29 20:45:29 2009
@@ -903,6 +903,16 @@
case Record:
case Enum:
case Typedef:
+ case Complex:
+ case TypeOfExpr:
+ case TypeOf:
+ case TemplateTypeParm:
+ case TemplateSpecialization:
+ case QualifiedName:
+ case Typename:
+ case ObjCInterface:
+ case ObjCQualifiedInterface:
+ case ObjCQualifiedId:
return true;
default:
return false;
More information about the cfe-commits
mailing list