<rdar://problem/13209140>

“plugin load” tries to be more helpful when it fails to load a plugin

llvm-svn: 180218
This commit is contained in:
Enrico Granata
2013-04-24 21:29:08 +00:00
parent 2ad6691be4
commit e743c78299
5 changed files with 29 additions and 4 deletions

View File

@@ -20,6 +20,12 @@ DynamicLibrary::DynamicLibrary (const FileSpec& spec, uint32_t options) : m_file
m_handle = NULL;
}
bool
DynamicLibrary::IsValid ()
{
return m_handle != NULL;
}
DynamicLibrary::~DynamicLibrary ()
{
if (m_handle)