refactor TargetMachine into a new target module

TargetMachine is generally useful outside of the execution engine
context so i think it makes sense to move it into its own module.
This commit is contained in:
anthony cantor 2013-08-17 00:41:42 -06:00 • committed by Siu Kwan Lam
commit 83299a20a6
3 changed files with 196 additions and 174 deletions

View file

@ -4,7 +4,6 @@ del get_versions
from llvmpy import extra
from llvmpy import api
version = extra.get_llvm_version()
del extra
@ -44,12 +43,3 @@ 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()