This is an archive of the discontinued LLVM Phabricator instance.

llvm-lib: Implement /list flag
ClosedPublic

Authored by thakis on Feb 8 2019, 7:54 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

thakis created this revision.Feb 8 2019, 7:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 8 2019, 7:54 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
pcc added inline comments.Feb 8 2019, 3:12 PM
llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp
99 ↗(On Diff #185974)

Could you make this take an llvm::Error and change the caller with the error_code to use errorCodeToError? We're (slowly) trying to eradicate std::error_code and errorToErrorCode from the codebase.

llvm/lib/ToolDrivers/llvm-lib/Options.td
14 ↗(On Diff #185974)

typo "list"

thakis updated this revision to Diff 186072.Feb 8 2019, 4:33 PM
thakis marked 2 inline comments as done.

comments

llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp
99 ↗(On Diff #185974)

Done, but not sure if the error printing code is how it's supposed to look; feels a bit roundabout.

pcc accepted this revision.Feb 8 2019, 4:49 PM

LGTM

I think this is generally how the error handlers are supposed to look, see e.g. the other callers of handleAllErrors.

This revision is now accepted and ready to land.Feb 8 2019, 4:49 PM
This revision was automatically updated to reflect the committed changes.