llvm-lib: Pull error printing code out of two functions
authorNico Weber <thakis@chromium.org>
Wed, 27 Jan 2021 00:11:56 +0000 (19:11 -0500)
committerNico Weber <thakis@chromium.org>
Wed, 27 Jan 2021 00:13:30 +0000 (19:13 -0500)
commitf3c9687a4f79fc5e31890278507294594d8787bd
tree812ea4e18d37ff13f90ff9f6a1c717c47b1b5b63
parent3caa2d3354e31827ba7a5e258f0025bac5336cbe
llvm-lib: Pull error printing code out of two functions

Slightly changes the output in error code, but no behavior change in
normal use. This is for preparation for using these two functions
elsewhere.
llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp