extern int opts_standard;
extern bool opts_debug;
extern bool opts_memchk;
+extern bool opts_dump;
/*===================================================================*/
#define OPTS_FLAG(i) (!! (opts_flags[(i)/32] & (1<< ((i)%32))))
int opts_standard = COMPILER_GMQCC;
bool opts_debug = false;
bool opts_memchk = false;
+bool opts_dump = false;
typedef struct { char *filename; int type; } argitem;
VECTOR_MAKE(argitem, items);
opts_debug = true;
continue;
}
+ if (!strcmp(argv[0]+1, "dump")) {
+ opts_dump = true;
+ continue;
+ }
if (!strcmp(argv[0]+1, "memchk")) {
opts_memchk = true;
continue;
}
}
- ir_builder_dump(ir, printf);
+ if (opts_dump)
+ ir_builder_dump(ir, printf);
if (!ir_builder_generate(ir, output)) {
printf("*** failed to generate output file\n");