Add llvm::Module::addLibrary to exposed API

This commit is contained in:
Travis E. Oliphant 2012-06-21 01:25:23 -05:00
commit 7b6aac79fb
4 changed files with 16 additions and 0 deletions

View file

@ -505,6 +505,9 @@ class Module(llvm.Ownable, llvm.Cacheable):
raise llvm.LLVMException("Unable to create bitcode")
fileobj.write(data)
def add_library(self, name):
return _core.LLVMModuleAddLibrary(self.ptr, name)
#===----------------------------------------------------------------------===
# Types