This is an archive of the discontinued LLVM Phabricator instance.

[ifs] Print an error when llvm-ifs is supplied with an unknown arch
ClosedPublic

Authored by haowei on Mar 22 2023, 4:55 PM.

Details

Summary

This patch makes llvm-ifs print an error when the arch string from

'--arch' flag or the IFS file 'Arch' field is unknown.

Diff Detail

Event Timeline

haowei created this revision.Mar 22 2023, 4:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 22 2023, 4:55 PM
haowei requested review of this revision.Mar 22 2023, 4:55 PM
jhenderson added inline comments.Mar 23 2023, 1:21 AM
llvm/lib/InterfaceStub/IFSHandler.cpp
199–201

I know this is following existing practice a few lines up, but 1) could this use createStringError and 2) don't end error messages in a full stop (see the coding standards).

llvm/tools/llvm-ifs/llvm-ifs.cpp
339

Similar to above: no leading capital error or trailing punctuation at the end of an error message (see the coding standards).

haowei updated this revision to Diff 507917.Mar 23 2023, 4:23 PM

Thanks for pointing them out.

haowei marked 2 inline comments as done.Mar 23 2023, 4:24 PM
This revision is now accepted and ready to land.Apr 10 2023, 3:29 PM