LLVM 22.0.0git
llvm::object::BuildIDFetcher Class Reference

BuildIDFetcher searches local cache directories for debug info. More...

#include "llvm/Object/BuildID.h"

Inheritance diagram for llvm::object::BuildIDFetcher:
[legend]

Public Member Functions

 BuildIDFetcher (std::vector< std::string > DebugFileDirectories)
virtual ~BuildIDFetcher ()=default
virtual std::optional< std::string > fetch (BuildIDRef BuildID) const
 Returns the path to the debug file with the given build ID.

Detailed Description

BuildIDFetcher searches local cache directories for debug info.

Definition at line 40 of file BuildID.h.

Constructor & Destructor Documentation

◆ BuildIDFetcher()

llvm::object::BuildIDFetcher::BuildIDFetcher ( std::vector< std::string > DebugFileDirectories)
inline

Definition at line 42 of file BuildID.h.

References llvm::move().

Referenced by llvm::DebuginfodFetcher::DebuginfodFetcher().

◆ ~BuildIDFetcher()

virtual llvm::object::BuildIDFetcher::~BuildIDFetcher ( )
virtualdefault

References fetch().

Member Function Documentation

◆ fetch()

std::optional< std::string > BuildIDFetcher::fetch ( BuildIDRef BuildID) const
virtual

Returns the path to the debug file with the given build ID.

Reimplemented in llvm::DebuginfodFetcher.

Definition at line 68 of file BuildID.cpp.

References llvm::sys::path::append(), llvm::sys::fs::exists(), and llvm::toHex().

Referenced by llvm::InstrProfCorrelator::get(), llvm::coverage::CoverageMapping::load(), and ~BuildIDFetcher().


The documentation for this class was generated from the following files: