Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/tools/llvm-readobj/ELFDumper.cpp | ||
---|---|---|
1455 | Honestly, it seems a little weird to have this inconsistency in the different macros. As far as I can see, the only difference is to provide an AltName field, right? Would it be a good idea to change all the other flags to use ENUM_ENT, perhaps with an empty AltName? This would also help ensure that people consider what, if any, GNU flag letter a new flag should have, and would also allow us to avoid the situation where some flags for a target might have a GNU representation, but not others. | |
1527–1529 | With my suggestion above, this would then become a check against the empty string, which feels less fragile to me. |
LGTM, with one comment.
llvm/tools/llvm-readobj/ELFDumper.cpp | ||
---|---|---|
1527 | are known to be unused for the GNU style -> are not printed in GNU style |
Honestly, it seems a little weird to have this inconsistency in the different macros. As far as I can see, the only difference is to provide an AltName field, right? Would it be a good idea to change all the other flags to use ENUM_ENT, perhaps with an empty AltName?
This would also help ensure that people consider what, if any, GNU flag letter a new flag should have, and would also allow us to avoid the situation where some flags for a target might have a GNU representation, but not others.