1 //===-- DynamicLibrary.cpp ------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "lldb/Core/Error.h"
11 #include "lldb/Host/DynamicLibrary.h"
13 using namespace lldb_private;
15 DynamicLibrary::DynamicLibrary (const FileSpec& spec, uint32_t options) : m_filespec(spec)
18 m_handle = Host::DynamicLibraryOpen (spec,options,err);
24 DynamicLibrary::IsValid ()
26 return m_handle != NULL;
29 DynamicLibrary::~DynamicLibrary ()
32 Host::DynamicLibraryClose (m_handle);