This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Add missing e_flag EF_RISCV_TSO
ClosedPublic

Authored by StephenFan on Oct 16 2021, 7:16 AM.

Diff Detail

Event Timeline

StephenFan created this revision.Oct 16 2021, 7:16 AM
StephenFan requested review of this revision.Oct 16 2021, 7:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 16 2021, 7:16 AM

Commit message needs s/R_/EF_/

llvm/test/Object/RISCV/elf-flags.yaml
26

Please fix

llvm/tools/llvm-readobj/ELFDumper.cpp
1588–1589

Keep formatting consistent with the surroundings

@jrtc27 Thanks for your review!

  1. Change commit log.
  2. Add end line and change format.
StephenFan retitled this revision from [RISCV] Add missing e_flag R_RISCV_TSO to [RISCV] Add missing e_flag EF_RISCV_TSO.Oct 16 2021, 8:05 AM
jhenderson accepted this revision.Oct 18 2021, 12:39 AM

LGTM. Probably should wait for @jrtc27 too.

This revision is now accepted and ready to land.Oct 18 2021, 12:39 AM
MaskRay accepted this revision.Oct 19 2021, 3:10 PM
MaskRay added inline comments.
llvm/include/llvm/BinaryFormat/ELF.h
660

add trailing comma

llvm/tools/llvm-readobj/ELFDumper.cpp
1587

add trailing comma

StephenFan added inline comments.Oct 20 2021, 1:45 AM
llvm/tools/llvm-readobj/ELFDumper.cpp
1587

Thanks for your review! @MaskRay

ENUM_ENT(EF_RISCV_TSO, "TSO") is the last item in array ElfHeaderRISCVFlags, and I found the surrounding arrays similar to it also do not have a trailing comma. Should I still need to add a trailing comma ?

MaskRay added inline comments.Oct 20 2021, 11:16 AM
llvm/tools/llvm-readobj/ELFDumper.cpp
1587

You can ignore the surrounding arrays

Add trailing comma.

asb accepted this revision.Oct 28 2021, 5:36 AM
This revision now requires review to proceed.Oct 28 2021, 5:36 AM
This revision is now accepted and ready to land.Oct 28 2021, 7:15 AM
This revision now requires review to proceed.Oct 28 2021, 7:15 AM
luke957 resigned from this revision.Oct 28 2021, 7:31 AM

So sorry for my bad herald script.

This revision is now accepted and ready to land.Oct 28 2021, 7:31 AM
This revision was landed with ongoing or failed builds.Jan 7 2022, 7:06 AM
This revision was automatically updated to reflect the committed changes.