NETMF/Llvm.NET

Re-work Static State to allow moving the native method static constructor

smaillet opened this issue · 0 comments

The current mechanism for loading the LibLLVM.dll is a static constructor. While this has the advantage of being transparent it can cause TypeLoad exceptions if the library can't be loaded. Moving that to an application called initialize function eliminates the exception and also allows for properly handling llvmshutdown() calls (via a returned IDisposable)