This is an archive of the discontinued LLVM Phabricator instance.

[llvm-objdump] Fix reporting error for processing target features
ClosedPublic

Authored by eklepilkina on Jan 18 2023, 3:10 AM.

Diff Detail

Event Timeline

eklepilkina created this revision.Jan 18 2023, 3:10 AM
Herald added a reviewer: MaskRay. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
eklepilkina requested review of this revision.Jan 18 2023, 3:10 AM
eklepilkina added a subscriber: anton-afanasyev.
foad added inline comments.Jan 18 2023, 4:04 AM
llvm/lib/Support/RISCVISAInfo.cpp
706–707

Nit: I think the usual style is to keep the braces if the body of the "if" is more than one physical line, even though it is a single statement.

llvm/tools/llvm-objdump/llvm-objdump.cpp
2014

Could be reportError(FeaturesValue.takeError(), Obj->getFileName())?

Is it possible to write a test for this error message?

  • Review fixes
  • Review fixes
foad accepted this revision.Jan 18 2023, 5:51 AM

LGTM, thanks!

This revision is now accepted and ready to land.Jan 18 2023, 5:51 AM
This revision was landed with ongoing or failed builds.Jan 18 2023, 5:57 AM
This revision was automatically updated to reflect the committed changes.