LLVM  10.0.0
Public Member Functions | List of all members
llvm::CachedPathResolver Class Reference

Small helper that resolves and caches file paths. More...

#include "llvm/DWARFLinker/DWARFLinkerDeclContext.h"

Public Member Functions

StringRef resolve (std::string Path, NonRelocatableStringpool &StringPool)
 Resolve a path by calling realpath and cache its result. More...
 

Detailed Description

Small helper that resolves and caches file paths.

This helps reduce the number of calls to realpath which is expensive. We assume the input are files, and cache the realpath of their parent. This way we can quickly resolve different files under the same path.

Definition at line 29 of file DWARFLinkerDeclContext.h.

Member Function Documentation

◆ resolve()

StringRef llvm::CachedPathResolver::resolve ( std::string  Path,
NonRelocatableStringpool &  StringPool 
)
inline

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