python: Properly initialize before trying to create disasm
authorAnders Waldenborg <anders@0x63.nu>
Sun, 17 Nov 2013 15:17:08 +0000 (15:17 +0000)
committerAnders Waldenborg <anders@0x63.nu>
Sun, 17 Nov 2013 15:17:08 +0000 (15:17 +0000)
commit60e4d7f618ffc8b91c6fa2638e3c25a085c2fb1e
tree423808573938e9e19396fb2e369373c4d0aafecf
parentd192b52a612141b25a8ca749068b6424086aecff
python: Properly initialize before trying to create disasm

As the "LLVMInitializeAll*" functions are not available as symbols in
the shared library they can't be used, and as a workaround a list of
the targets is kept and the individual symbols tried. As soon as the
"All"-functions are changed to proper symbols (as opposed to static
inlines in the headers) this hack will be replace with simple calls
to the corresponding "LLVMInitializeAll*" functions.

Reviewed By: indygreg

CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1879

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194964 91177308-0d34-0410-b5e6-96231b3b80d8
bindings/python/llvm/disassembler.py