diff options
author | OCHyams <orlando.hyams@sony.com> | 2023-03-29 11:33:11 +0100 |
---|---|---|
committer | OCHyams <orlando.hyams@sony.com> | 2023-03-29 12:47:54 +0100 |
commit | 41c92c0dc679022bf270c460629e998380183a2c (patch) | |
tree | 54769aed0b05fc99e0bcb92f467e47d66617c86e /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | cb2c510e828abf94eb57da3c00d44e78b8583c04 (diff) | |
download | llvm-41c92c0dc679022bf270c460629e998380183a2c.zip llvm-41c92c0dc679022bf270c460629e998380183a2c.tar.gz llvm-41c92c0dc679022bf270c460629e998380183a2c.tar.bz2 |
[Assignment Tracking] Give -fexperimental-assignment-tracking flag 3 options
Without this patch assignment tracking is enabled with
`-fexperimental-assignment-tracking` and disabled with
`-fno-experimental-assignment-tracking` (default). This patch removes the
`-fno-` version and changes `-fexperimental-assignment-tracking` to take 3
values: `enabled`, `disabled` (default), and `forced`.
`clang -Xclang -fexperimental-assignment-tracking=enabled` enables the feature
if some other conditions are met and `=forced` enables it without any further
checks.
If `enabled` is specified the feature will remain disabled if any of the
following are true: it's an LTO or ThinLTO build, optimisations are not
enabled, or lldb debugger tuning has been specified. See this short RFC
for more info:
https://discourse.llvm.org/t/rfc-enable-assignment-tracking/69399
Reviewed By: jmorse
Differential Revision: https://reviews.llvm.org/D146615
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions