--debug output: stdout instead of stderr
This commit is contained in:
8
func.cpp
8
func.cpp
@@ -85,19 +85,19 @@ Function::Function(Symbol *s, Stmt *c) {
|
|||||||
code = TypeCheck(code);
|
code = TypeCheck(code);
|
||||||
|
|
||||||
if (code != NULL && g->debugPrint) {
|
if (code != NULL && g->debugPrint) {
|
||||||
fprintf(stderr, "After typechecking function \"%s\":\n",
|
printf("After typechecking function \"%s\":\n",
|
||||||
sym->name.c_str());
|
sym->name.c_str());
|
||||||
code->Print(0);
|
code->Print(0);
|
||||||
fprintf(stderr, "---------------------\n");
|
printf("---------------------\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (code != NULL) {
|
if (code != NULL) {
|
||||||
code = Optimize(code);
|
code = Optimize(code);
|
||||||
if (g->debugPrint) {
|
if (g->debugPrint) {
|
||||||
fprintf(stderr, "After optimizing function \"%s\":\n",
|
printf("After optimizing function \"%s\":\n",
|
||||||
sym->name.c_str());
|
sym->name.c_str());
|
||||||
code->Print(0);
|
code->Print(0);
|
||||||
fprintf(stderr, "---------------------\n");
|
printf("---------------------\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user