diff options
author | Tim Keith <tkeith@nvidia.com> | 2020-08-28 10:30:23 -0700 |
---|---|---|
committer | Tim Keith <tkeith@nvidia.com> | 2020-08-28 10:30:25 -0700 |
commit | 627e9007eaba39624fe92a4d97dceb18bc51f190 (patch) | |
tree | 1bd2963ed07082a84a1e1caa2d643c6d0963f1ae /llvm/lib/CodeGen/CommandFlags.cpp | |
parent | 316d336dca7f64f048507f155166daa3821db957 (diff) | |
download | llvm-627e9007eaba39624fe92a4d97dceb18bc51f190.zip llvm-627e9007eaba39624fe92a4d97dceb18bc51f190.tar.gz llvm-627e9007eaba39624fe92a4d97dceb18bc51f190.tar.bz2 |
[flang][NFC] Change how error symbols are recorded
When an error is associated with a symbol, it was marked with a flag
from Symbol::Flag. The problem with that is that you need a mutable
symbol to do that. Instead, store the set of error symbols in the
SemanticsContext. This allows for some const_casts to be eliminated.
Also, improve the internal error that occurs if SetError is called
but no fatal error has been reported.
Differential Revision: https://reviews.llvm.org/D86740
Diffstat (limited to 'llvm/lib/CodeGen/CommandFlags.cpp')
0 files changed, 0 insertions, 0 deletions