diff options
author | Krzysztof Parzyszek <kparzysz@quicinc.com> | 2021-06-18 12:24:03 -0500 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@quicinc.com> | 2021-08-05 09:04:17 -0500 |
commit | d0c3b61498ecc04c9d95f6af7eb7560727500d56 (patch) | |
tree | f50d46474fbcdcd5372feeef0c06d528e3da856d /llvm/tools/llvm-diff | |
parent | 1172a8a7639399fe0b8a6c78a7123b1c3f9cf833 (diff) | |
download | llvm-d0c3b61498ecc04c9d95f6af7eb7560727500d56.zip llvm-d0c3b61498ecc04c9d95f6af7eb7560727500d56.tar.gz llvm-d0c3b61498ecc04c9d95f6af7eb7560727500d56.tar.bz2 |
Delay initialization of OptBisect
When LLVM is used in other projects, it may happen that global cons-
tructors will execute before the call to ParseCommandLineOptions.
Since OptBisect is initialized via a constructor, and has no ability
to be updated at a later time, passing "-opt-bisect-limit" to the
parse function may have no effect.
To avoid this problem use a cl::cb (callback) to set the bisection
limit when the option is actually processed.
Differential Revision: https://reviews.llvm.org/D104551
Diffstat (limited to 'llvm/tools/llvm-diff')
0 files changed, 0 insertions, 0 deletions