Skip to content
Permalink
Browse files

Dump CUDAG(GBL_CURRFUNC) only if GBL_CURRFUNC > 0

  • Loading branch information...
gklimowicz committed Oct 9, 2019
1 parent 00ccd52 commit 5758ee4d45c3ecf2cfd0a4c7e8242442ac4e1ba3
Showing with 4 additions and 7 deletions.
  1. +4 −7 tools/flang2/flang2exe/mwd.cpp
@@ -4336,18 +4336,15 @@ printblocks(void)
if (full) {
fprintf(dfile, "func_count=%d, curr_func=%d=%s\n", gbl.func_count,
GBL_CURRFUNC, GBL_CURRFUNC > 0 ? SYMNAME(GBL_CURRFUNC) : "");
#ifdef CUDAG
putcuda("cuda", CUDAG(GBL_CURRFUNC));
fprintf(dfile, "\n");
#endif
} else {
fprintf(dfile, "func_count=%d, curr_func=%s\n", gbl.func_count,
GBL_CURRFUNC > 0 ? SYMNAME(GBL_CURRFUNC) : "");
}
#ifdef CUDAG
putcuda("cuda", CUDAG(GBL_CURRFUNC));
fprintf(dfile, "\n");
if (GBL_CURRFUNC > 0)
putcuda("cuda", CUDAG(GBL_CURRFUNC));
fprintf(dfile, "\n");
#endif
}
block = BIHNUMG(GBL_CURRFUNC);
for (; block; block = BIH_NEXT(block)) {
printblock(block);

0 comments on commit 5758ee4

Please sign in to comment.
You can’t perform that action at this time.