"-mllvm -print-before=<pass_name>" not working when invoked with clang #30010
Labels
bugzilla
Issues migrated from bugzilla
clang:driver
'clang' and 'clang++' user-facing binaries. Not 'clang-cl'
confirmed
Verified by a second party
Extended Description
$ touch /tmp/test.c && ./bin/clang -mllvm -print-before=verify -c -emit-llvm /tmp/1.c
clang (LLVM option parsing): for the -print-before option: Cannot find option named 'verify'!
Looks like the passes were not registered by the time we parse the command line when invoked with clang. However, the option works perfectly fine with "llc". FYI, same is the case with "-mllvm print-after=<pass_name>
The text was updated successfully, but these errors were encountered: