LLVM: lib/Debuginfod/BuildIDFetcher.cpp Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

16

18

19using namespace llvm;

20

21std::optionalstd::string

23 if (std::optionalstd::string Path = BuildIDFetcher::fetch(BuildID))

24 return std::move(*Path);

25

27 if (PathOrErr)

28 return *PathOrErr;

30 return std::nullopt;

31}

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.

Definition BuildIDFetcher.cpp:22

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.