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)
std::optional< std::string > normalize (StringRef Path) const
std::optional< std::string > validate (StringRef Path) const
 Validate the given path as a shared library.

Static Public Member Functions

static bool isSharedLibrary (StringRef Path)

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 190 of file LibraryScanner.h.

Constructor & Destructor Documentation

◆ DylibPathValidator()

llvm::orc::DylibPathValidator::DylibPathValidator ( PathResolver & PR)
inline

Definition at line 192 of file LibraryScanner.h.

Member Function Documentation

◆ isSharedLibrary()

◆ normalize()

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

Definition at line 196 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 206 of file LibraryScanner.h.

References isSharedLibrary(), and normalize().

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


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