Add things to make MCJIT working

This commit is contained in:
Siu Kwan Lam 2013-07-31 15:44:01 -05:00
commit 6d3253e4ea
5 changed files with 7 additions and 2 deletions

View file

@ -232,7 +232,7 @@ def initialize_target(target, noraise=False):
It is safe to initialize the same target multiple times.
"""
prefix = 'LLVMInitialize'
postfixes = ['Target', 'TargetInfo', 'TargetMC', 'AsmPrinter']
postfixes = ['Target', 'TargetInfo', 'TargetMC', 'AsmPrinter', 'AsmParser']
try:
for postfix in postfixes:
getattr(api, '%s%s%s' % (prefix, target, postfix))()