added Target.createMCSubtargetInfo and createMCDisassembler

also added bindings to classes required by the target methods. also
added a convenience function to initialize all target components to
the llvm module
This commit is contained in:
anthony cantor 2013-08-13 15:14:16 -06:00 • committed by Siu Kwan Lam
commit ba03b226c8
5 changed files with 62 additions and 0 deletions

View file

@ -4,6 +4,8 @@ del get_versions
from llvmpy import extra
from llvmpy import api
version = extra.get_llvm_version()
del extra
@ -42,3 +44,12 @@ def test(verbosity=1):
return len(result.failures) + len(result.errors)
def initialize_all_target_components():
api.llvm.InitializeAllTargets()
api.llvm.InitializeAllTargetInfos()
api.llvm.InitializeAllTargetMCs()
api.llvm.InitializeAllAsmPrinters()
api.llvm.InitializeAllDisassemblers()
api.llvm.InitializeAllAsmParsers()