This is an archive of the discontinued LLVM Phabricator instance.

[XCOFF] Clean-up enum use in BinaryFormat/XCOFF.h; NFC
ClosedPublic

Authored by hubert.reinterpretcast on Apr 29 2020, 3:35 PM.

Details

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.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptApr 29 2020, 3:35 PM
jasonliu accepted this revision.Apr 30 2020, 6:39 AM

LGTM.

This revision is now accepted and ready to land.Apr 30 2020, 6:39 AM
sfertile accepted this revision.Apr 30 2020, 6:40 AM

LGTM.

jasonliu added inline comments.Apr 30 2020, 6:41 AM
llvm/include/llvm/BinaryFormat/XCOFF.h
25

nit: remove blank line?

hubert.reinterpretcast marked an inline comment as done.Apr 30 2020, 9:06 AM
hubert.reinterpretcast added inline comments.
llvm/include/llvm/BinaryFormat/XCOFF.h
25

The blank line is intentional on my part. This comment describes more than just the immediate block of declarations.

jasonliu added inline comments.Apr 30 2020, 12:23 PM
llvm/include/llvm/BinaryFormat/XCOFF.h
25

Okay.

This revision was automatically updated to reflect the committed changes.