no member named 'DynamicLibrary' in namespace 'llvm::sys'

Hi,
I’m trying to use the following code in my project:

std::string ErrorMsg;
if(sys::DynamicLibrary::LoadLibraryPermanently(0, &ErrorMsg))
{
errs() << “???\n”;
return -1;
}

but DynamicLibrary is not found in the namespace. Have I missed something when I compile llvm? Any suggestion?

Thanks

Nevermind I solved it

Sorry for the spam