diff options
author | Peter Klausler <pklausler@nvidia.com> | 2022-04-01 12:46:04 -0700 |
---|---|---|
committer | Peter Klausler <pklausler@nvidia.com> | 2022-04-14 07:34:50 -0700 |
commit | ef141aec3c81b33bd2022f258e6ca8d4b1611fd3 (patch) | |
tree | 56b5446409045b6aca788b415c4daeaa41a45fcd /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 4ff70dba3839ce9510499a79f93522b67cab504c (diff) | |
download | llvm-ef141aec3c81b33bd2022f258e6ca8d4b1611fd3.zip llvm-ef141aec3c81b33bd2022f258e6ca8d4b1611fd3.tar.gz llvm-ef141aec3c81b33bd2022f258e6ca8d4b1611fd3.tar.bz2 |
[flang] Improve appearance of message attachments
Error messages can have a list of attachments; these are used to point
to related source locations, supply additional information, and to
encapsulate error messages that were *not* emitted in a given context
to explain why a warning was justified.
This patch adds a message severity ("Because") for that last case,
and extends to AttachTo() API to provide a means for overriding
the severity of an attached message.
Some existing message attachments had their severities adjusted,
now that we're printing them. And operator==() for Message was
cleaned up while debugging after I noticed that it was recursively
O(N**2) and subject to returning a false positive.
Differential Revision: https://reviews.llvm.org/D123710
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions