CppInterOp
C++ Language Interoperability Layer
Loading...
Searching...
No Matches
Namespaces | Classes | Functions
CppInternal Namespace Reference

Namespaces

namespace  DispatchRaw
 
namespace  utils
 

Classes

class  Dyld
 
class  DynamicLibraryManager
 A helper class managing dynamic shared objects. More...
 
class  Interpreter
 CppInterOp Interpreter. More...
 

Functions

static std::string substFront (StringRef original, StringRef pattern, StringRef replacement)
 
static std::string substAll (StringRef original, StringRef libLoader)
 
std::string RPathToStr2 (SmallVector< StringRef, 2 > V)
 
std::string GetExecutablePath ()
 
std::string RPathToStr (SmallVector< StringRef, 2 > V)
 
template<class ELFT >
void HandleDynTab (const ELFFile< ELFT > *Elf, StringRef FileName, SmallVector< StringRef, 2 > &RPath, SmallVector< StringRef, 2 > &RunPath, std::vector< StringRef > &Deps, bool &isPIEExecutable)
 

Function Documentation

◆ GetExecutablePath()

std::string CppInternal::GetExecutablePath ( )

◆ HandleDynTab()

template<class ELFT >
void CppInternal::HandleDynTab ( const ELFFile< ELFT > *  Elf,
StringRef  FileName,
SmallVector< StringRef, 2 > &  RPath,
SmallVector< StringRef, 2 > &  RunPath,
std::vector< StringRef > &  Deps,
bool &  isPIEExecutable 
)

◆ RPathToStr()

std::string CppInternal::RPathToStr ( SmallVector< StringRef, 2 >  V)

Definition at line 564 of file DynamicLibraryManagerSymbol.cpp.

◆ RPathToStr2()

std::string CppInternal::RPathToStr2 ( SmallVector< StringRef, 2 >  V)

◆ substAll()

static std::string CppInternal::substAll ( StringRef  original,
StringRef  libLoader 
)
static
Returns
substitution of all known linker variables in original

Definition at line 85 of file DynamicLibraryManager.cpp.

References substFront().

Referenced by CppInternal::DynamicLibraryManager::lookupLibrary().

◆ substFront()

static std::string CppInternal::substFront ( StringRef  original,
StringRef  pattern,
StringRef  replacement 
)
static
Returns
substitution of pattern in the front of original with replacement Example: substFront("@rpath/abc", "@rpath/", "/tmp") -> "/tmp/abc"

Definition at line 75 of file DynamicLibraryManager.cpp.

Referenced by CppInternal::DynamicLibraryManager::lookupLibrary(), and substAll().