[llvm] [Debuginfo] Debuginfod client library.
authorNoah Shutty <shutty@google.com>
Mon, 6 Dec 2021 04:27:53 +0000 (04:27 +0000)
committerNoah Shutty <shutty@google.com>
Mon, 6 Dec 2021 04:38:14 +0000 (04:38 +0000)
commitaf69947e7028274573cfc927aabead8326b63367
treeae4896b69494ce955dd467290dbcc6a164a35a48
parentb1eb6a3589082c1538cde8030db07cae2912e2e7
[llvm] [Debuginfo] Debuginfod client library.

This adds a Debuginfod library containing the `fetchDebuginfo` function which queries servers specified by the `DEBUGINFOD_URLS` environment variable for the debuginfo, executable, or a specified source file associated with a given build id.

This diff was split out from D111252.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D112758
llvm/include/llvm/Debuginfod/Debuginfod.h [new file with mode: 0644]
llvm/include/llvm/Support/Caching.h
llvm/lib/CMakeLists.txt
llvm/lib/Debuginfod/CMakeLists.txt [new file with mode: 0644]
llvm/lib/Debuginfod/Debuginfod.cpp [new file with mode: 0644]
llvm/unittests/CMakeLists.txt
llvm/unittests/Debuginfod/CMakeLists.txt [new file with mode: 0644]
llvm/unittests/Debuginfod/DebuginfodTests.cpp [new file with mode: 0644]