This rewrites the logic to get rid of "ELFSymbolRef" API where possible.
This allowed to handle possible errors better, improve warnings reported and add new ones.
Also 'reportWarning' was replaced with 'reportUniqueWarning'
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/tools/llvm-readobj/ELFDumper.cpp | ||
---|---|---|
5804–5805 | You've added several new warnings with this refactor. Does this comment still apply? | |
5834–5839 | Should this not just be cantFail? | |
5867–5868 | Are you planning on further improving these messages in another change? The offset would be useful here, for example. (Suggested fix could be deferred too, if it causes too many test changes) |
- Addressed review comments.
llvm/tools/llvm-readobj/ELFDumper.cpp | ||
---|---|---|
5804–5805 | Probably we can remove it. | |
5834–5839 | I am not sure. cantFail looks like we give a guarantee for this condition to be always true. But this is not our intention. | |
5867–5868 |
I'll do it. |
You've added several new warnings with this refactor. Does this comment still apply?