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:
anthony cantor 2013-08-16 16:30:54 -06:00 • committed by Siu Kwan Lam
commit 78be6a7f5f
6 changed files with 83 additions and 66 deletions

View file

@ -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