[LinkerWrapper][NFC] Move error handling to a common function
authorJoseph Huber <jhuber6@vols.utk.edu>
Fri, 8 Jul 2022 15:00:14 +0000 (11:00 -0400)
committerJoseph Huber <jhuber6@vols.utk.edu>
Fri, 8 Jul 2022 15:18:38 +0000 (11:18 -0400)
commite0de264f6355c397e91927827a9cbb940c903607
tree71ca77124a1a643506610bb5512d7621efb132aa
parentd2ead9e324d4d268e8c0634849d6081e177c9dd7
[LinkerWrapper][NFC] Move error handling to a common function

Summary:
This patch merges all the error handling functions to a single function
call so we don't define the same lambda many times.
clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp