Skip to content

Commit 25fae8b

Browse files
committed
fix for #53
1 parent f6381ad commit 25fae8b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

include/shady/driver.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ typedef enum {
1616
ShdInputFileDoesNotExist = 4,
1717
ShdInputFileIOError,
1818
ShdMissingDumpCfgArg,
19-
ShdMissingDumpIrArg,
2019
ShdIncorrectLogLevel = 16,
2120
ShdInvalidTarget,
2221
ShdClangInvocationFailed,

src/driver/cli.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,12 +278,12 @@ void shd_parse_driver_args(DriverConfig* args, int* pargc, char** argv) {
278278
exit(ShdMissingDumpCfgArg);
279279
}
280280
args->loop_tree_output_filename = argv[i];
281-
} else if (strcmp(argv[i], "--dump-ir") == 0) {
281+
} else if (strcmp(argv[i], "--emit-ir") == 0) {
282282
argv[i] = NULL;
283283
i++;
284284
if (i == argc) {
285-
shd_error_print("--dump-ir must be followed with a filename");
286-
exit(ShdMissingDumpIrArg);
285+
shd_error_print("--emit-ir must be followed with a filename");
286+
exit(ShdMissingOutputArg);
287287
}
288288
args->shd_output_filename = argv[i];
289289
} else if (strcmp(argv[i], "--entry-point") == 0) {

0 commit comments

Comments
 (0)