Add things to make MCJIT working
This commit is contained in:
parent
4c1b9016fb
commit
6d3253e4ea
5 changed files with 7 additions and 2 deletions
|
|
@ -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))()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue