[XCOFF] Clean-up enum use in BinaryFormat/XCOFF.h; NFC
authorHubert Tong <hubert.reinterpretcast@gmail.com>
Fri, 1 May 2020 00:40:53 +0000 (20:40 -0400)
committerHubert Tong <hubert.reinterpretcast@gmail.com>
Fri, 1 May 2020 00:48:30 +0000 (20:48 -0400)
commit5d806e254e81411698089761aa4b441882a86b07
tree7dbaf01937b27c761c8d80cfa358a2cafde35555
parentc5f7c039efe7ff09a44cfd252f6cb001ceed6269
[XCOFF] Clean-up enum use in BinaryFormat/XCOFF.h; NFC

Summary:
This patch splits mostly unrelated size constants into separate
constexpr variables, sets explicit underlying types for the enumerations
to match the fields they are used for, and improves various comments.

This patch also replaces `<cname>` headers with `<name.h>` headers to
match the usage of the declared names as global namespace members in the
file.

Reviewers: jasonliu, DiggerLin, daltenty, sfertile

Reviewed By: jasonliu, sfertile

Differential Revision: https://reviews.llvm.org/D79136
llvm/include/llvm/BinaryFormat/XCOFF.h