[phc-internals] [phc commit] r1491 - trunk/src/process_ir

codesite-noreply at google.com codesite-noreply at google.com
Thu Jul 31 17:20:11 IST 2008


Author: paul.biggar
Date: Thu Jul 31 09:18:19 2008
New Revision: 1491

Modified:
   trunk/src/process_ir/debug.cpp

Log:
Avoid initial <?php lines, when using debug(IR::Node).


Modified: trunk/src/process_ir/debug.cpp
==============================================================================
--- trunk/src/process_ir/debug.cpp	(original)
+++ trunk/src/process_ir/debug.cpp	Thu Jul 31 09:18:19 2008
@@ -16,7 +16,7 @@

 void debug (AST::Node *in)
 {
-	static AST_unparser *pup = new AST_unparser (cdebug);
+	static AST_unparser *pup = new AST_unparser (cdebug, true);
 	pup->unparse (in);
 	cdebug << endl;
 }
@@ -35,7 +35,7 @@

 void debug (HIR::Node *in)
 {
-	static HIR_unparser *pup = new HIR_unparser (cdebug);
+	static HIR_unparser *pup = new HIR_unparser (cdebug, true);
 	pup->unparse (in);
 	cdebug << endl;
 }
@@ -55,7 +55,7 @@

 void debug (MIR::Node *in)
 {
-	static MIR_unparser *pup = new MIR_unparser (cdebug);
+	static MIR_unparser *pup = new MIR_unparser (cdebug, true);
 	pup->unparse (in);
 	cdebug << endl;
 }


More information about the phc-internals mailing list