conditionals for compatibility with llvm < 3.4
i only intend to support MC bindings (and anything reliant on MC) for llvm 3.4 and greater.
This commit is contained in:
parent
bc02b3d90a
commit
78be6a7f5f
6 changed files with 83 additions and 66 deletions
|
|
@ -1,7 +1,10 @@
|
|||
import llvm
|
||||
if llvm.version < (3, 4):
|
||||
raise Exception("mc is not supported for llvm version less than 3.4")
|
||||
|
||||
from io import BytesIO
|
||||
import contextlib
|
||||
|
||||
import llvm
|
||||
from llvmpy import api
|
||||
from llvmpy.api.llvm import MCDisassembler
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue