LLVM 22.0.0git
llvm::orc::DylibPathValidator Class Reference

Validates and normalizes dynamic library paths. More...

#include "llvm/ExecutionEngine/Orc/TargetProcess/LibraryScanner.h"

Public Member Functions

 DylibPathValidator (PathResolver &PR, LibraryPathCache &LC, ObjFileCache *ObjCache=nullptr)
bool isSharedLibrary (StringRef Path) const
bool isSharedLibraryCached (StringRef Path) const
std::optional< std::string > normalize (StringRef Path) const
std::optional< std::string > validate (StringRef Path) const
 Validate the given path as a shared library.

Detailed Description

Validates and normalizes dynamic library paths.

Uses a PathResolver to resolve paths to their canonical form and checks whether they point to valid shared libraries.

Definition at line 262 of file LibraryScanner.h.

Constructor & Destructor Documentation

◆ DylibPathValidator()

llvm::orc::DylibPathValidator::DylibPathValidator ( PathResolver & PR,
LibraryPathCache & LC,
ObjFileCache * ObjCache = nullptr )
inline

Definition at line 264 of file LibraryScanner.h.

Member Function Documentation

◆ isSharedLibrary()

◆ isSharedLibraryCached()

bool llvm::orc::DylibPathValidator::isSharedLibraryCached ( StringRef Path) const
inline

Definition at line 269 of file LibraryScanner.h.

References isSharedLibrary().

Referenced by validate().

◆ normalize()

std::optional< std::string > llvm::orc::DylibPathValidator::normalize ( StringRef Path) const
inline

Definition at line 275 of file LibraryScanner.h.

Referenced by validate().

◆ validate()

std::optional< std::string > llvm::orc::DylibPathValidator::validate ( StringRef Path) const
inline

Validate the given path as a shared library.

Definition at line 285 of file LibraryScanner.h.

References isSharedLibraryCached(), and normalize().

Referenced by llvm::orc::SearchPathResolver::resolve().


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