21std::optional<std::string>
23 if (std::optional<std::string> Path = BuildIDFetcher::fetch(BuildID))
24 return std::move(*Path);
This file declares a Build ID fetcher implementation for obtaining debug info from debuginfod.
This file contains several declarations for the debuginfod client and server.
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
std::optional< std::string > fetch(object::BuildIDRef BuildID) const override
Fetches the given Build ID using debuginfod and returns a local path to the resulting file.
Tagged union holding either a T or a Error.
Error takeError()
Take ownership of the stored error.
This is an optimization pass for GlobalISel generic memory operations.
Expected< std::string > getCachedOrDownloadDebuginfo(object::BuildIDRef ID)
Fetches a debug binary by searching the default local cache directory and server URLs.
void consumeError(Error Err)
Consume a Error without doing anything.