This is an archive of the discontinued LLVM Phabricator instance.

[NFC][XCOFF] refactor readobj/XCOFFDumper.cpp
ClosedPublic

Authored by DiggerLin on Apr 6 2020, 8:56 AM.

Details

Summary

refactor readobj/XCOFFDumper.cpp with function getAlignmentLog2() , getSymbolType(), isLabel().

Diff Detail

Event Timeline

DiggerLin created this revision.Apr 6 2020, 8:56 AM
Herald added a project: Restricted Project. · View Herald Transcript

Thanks for doing this.

llvm/include/llvm/Object/XCOFFObjectFile.h
134

Bit offsets are typically not indicated in hex. The type would be normally be unsigned or size_t.

DiggerLin updated this revision to Diff 255439.Apr 6 2020, 12:30 PM

address comment

jhenderson accepted this revision.Apr 7 2020, 12:42 AM

LGTM. One optional comment from me.

llvm/include/llvm/Object/XCOFFObjectFile.h
134

FWIW, I'd use size_t since sizeof(type) returns a size_t, but I don't think it matters that much.

This revision is now accepted and ready to land.Apr 7 2020, 12:42 AM
This revision was automatically updated to reflect the committed changes.