Table of Contents

Method TryGetOrCreateDyLib

Namespace
Ubiquity.NET.Llvm.OrcJITv2
Assembly
Ubiquity.NET.Llvm.dll

TryGetOrCreateDyLib(LazyEncodedString, out JITDyLib, out ErrorInfo)

Tries to get or create a JITDyLib in this session by name

public bool TryGetOrCreateDyLib(LazyEncodedString name, out JITDyLib lib, out ErrorInfo errInfo)

Parameters

name LazyEncodedString

name of the library

lib JITDyLib

Library or null if not found

errInfo ErrorInfo

ErrorInfo for any errors in creating the library if it didn't exist

Returns

bool

true if successful and false if not

Remarks

This will add symbols for any attached platforms. If there are no attached platforms then this is the same as calling GetOrCreateBareDyLib(LazyEncodedString).

name is a LazyEncodedString to allow for the possibility of retrieval of the name from native code and then providing it back again without going through any sort of marshal/unmarshal sequence. This allows for the most efficient use of data that is likely to come from the underlying native code.