[Support] [Debuginfod] Move HTTPClient to Debuginfod library.
authorNoah Shutty <shutty@google.com>
Mon, 6 Dec 2021 18:28:07 +0000 (18:28 +0000)
committerNoah Shutty <shutty@google.com>
Tue, 7 Dec 2021 01:19:21 +0000 (01:19 +0000)
commitd9941f74549a2e7f21112eecef349b123afc6213
treeb4221e3697c192271d0c7dd30535cb1068bbf575
parent615e374252c634177b3c4b8d12f883a7101da732
[Support] [Debuginfod] Move HTTPClient to Debuginfod library.

Following the discussion in D112753, this moves the HTTPClient from Support to Debuginfod library so that tools depending on Support do not automatically depend on Curl as well. This also removes `HTTPClient::initialize()` and `HTTPClient::cleanup()` from `InitLLVM` so these steps should be implemented by user tools instead.

Reviewed By: phosek

Differential Revision: https://reviews.llvm.org/D115131
llvm/include/llvm/Debuginfod/HTTPClient.h [moved from llvm/include/llvm/Support/HTTPClient.h with 100% similarity]
llvm/lib/Debuginfod/CMakeLists.txt
llvm/lib/Debuginfod/Debuginfod.cpp
llvm/lib/Debuginfod/HTTPClient.cpp [moved from llvm/lib/Support/HTTPClient.cpp with 98% similarity]
llvm/lib/Support/CMakeLists.txt
llvm/lib/Support/InitLLVM.cpp
llvm/unittests/Debuginfod/CMakeLists.txt
llvm/unittests/Debuginfod/DebuginfodTests.cpp
llvm/unittests/Debuginfod/HTTPClientTests.cpp [moved from llvm/unittests/Support/HTTPClient.cpp with 96% similarity]
llvm/unittests/Support/CMakeLists.txt