This patch makes llvm-ifs print an error when the arch string from
'--arch' flag or the IFS file 'Arch' field is unknown.
Paths
| Differential D146672
[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
This revision is now accepted and ready to land.Apr 10 2023, 3:29 PM Closed by commit rG420526fb22f3: [ifs] Print an error when llvm-ifs is supplied with an unknown arch (authored by haowei). · Explain WhyApr 10 2023, 4:18 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 512282 llvm/lib/InterfaceStub/IFSHandler.cpp
llvm/test/tools/llvm-ifs/ifs-read-invalid-arch.test
llvm/test/tools/llvm-ifs/write-stub.test
llvm/tools/llvm-ifs/llvm-ifs.cpp
|
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).