LLVM 19.0.0git
Public Member Functions | List of all members
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:
Inheritance graph
[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 39 of file BuildID.h.

Constructor & Destructor Documentation

◆ BuildIDFetcher()

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

Definition at line 41 of file BuildID.h.

◆ ~BuildIDFetcher()

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

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(), and llvm::sys::fs::exists().

Referenced by llvm::coverage::CoverageMapping::load().


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