[all-commits] [llvm/llvm-project] eb9ba2: [StandardInstrumentations] Add option to dump IR t...
aeubanks via All-commits
all-commits at lists.llvm.org
Thu May 25 09:18:22 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: eb9ba243722454c186134fc83449ce69906603ae
https://github.com/llvm/llvm-project/commit/eb9ba243722454c186134fc83449ce69906603ae
Author: Arthur Eubanks <aeubanks at google.com>
Date: 2023-05-25 (Thu, 25 May 2023)
Changed paths:
M llvm/lib/Passes/StandardInstrumentations.cpp
M llvm/test/Other/print-on-crash.ll
Log Message:
-----------
[StandardInstrumentations] Add option to dump IR to a file on crash
We already have -print-on-crash which dumps the IR to stderr on a crash, but it's more useful to dump to a file.
Introduce -print-on-crash-path to dump the IR to a file.
Making -print-on-crash a string option is confusing if you only pass -print-on-crash and it swallows up the next command line arg, which is why this is a new option.
Perhaps we could retire the dump to stderr version if people don't use it, but not sure how much people find that useful.
Reviewed By: jamieschmeiser
Differential Revision: https://reviews.llvm.org/D151170
More information about the All-commits
mailing list