This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readobj][XCOFF] Print the length of the string table.
ClosedPublic

Authored by Esme on Aug 3 2021, 2:56 AM.

Diff Detail

Event Timeline

Esme created this revision.Aug 3 2021, 2:56 AM
Esme requested review of this revision.Aug 3 2021, 2:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 3 2021, 2:56 AM
Higuoxing accepted this revision.Aug 3 2021, 8:25 AM

LGTM.

This revision is now accepted and ready to land.Aug 3 2021, 8:25 AM
shchenz accepted this revision.Aug 3 2021, 8:26 AM

LGTM too. Thanks for adding this improvement.

Looks good, except for one request.

llvm/tools/llvm-readobj/XCOFFDumper.cpp
463

I'm not sure I'd bother with the "(in bytes)" bit - we don't specify that in other places where the length is specified: bytes is implied, unless a unit is explicitly specified.

Esme updated this revision to Diff 363992.EditedAug 4 2021, 12:54 AM

Addressed comments.

This revision was landed with ongoing or failed builds.Aug 8 2021, 11:51 PM
This revision was automatically updated to reflect the committed changes.
fhahn added a subscriber: fhahn.Aug 9 2021, 1:27 AM

Looks like this prints building with Clang-based compilers:

llvm/tools/llvm-readobj/XCOFFDumper.cpp:464:5: error: call to member function 'printNumber' is ambiguous
  W.printNumber("Length", StrTabSize);
  ~~^~~~~~~~~~~
fhahn added a comment.Aug 9 2021, 1:28 AM

Looks like this prints building with Clang-based compilers:

*breaks* :)

Esme added a comment.Aug 9 2021, 1:41 AM

Looks like this prints building with Clang-based compilers:

llvm/tools/llvm-readobj/XCOFFDumper.cpp:464:5: error: call to member function 'printNumber' is ambiguous
  W.printNumber("Length", StrTabSize);
  ~~^~~~~~~~~~~

Sorry. rGaefdce8b397a was committed to fix the error.