15 Commits

Author SHA1 Message Date
Peter Matula 1815d79beb rename namespace "llvm" to "llvm_ks" (#333)
This prevents symbol collisions when the Keystone library is linked with the LLVM libraries.

Renaming was done by the following repository-wide substitutions:
* `namespace llvm` -> `namespace llvm_ks`
* `llvm::` -> `llvm_ks::`
2018-01-23 11:29:52 +08:00
Nguyen Anh Quynh 1c95fb5ed4 arm: fix instruction address report in issue #257 2016-11-21 01:35:37 +08:00
Nguyen Anh Quynh 289950f6f5 arm: fix issue #218 2016-07-09 00:00:11 +08:00
Nguyen Anh Quynh 33e2a54476 sanity check on number of bits of FP in ARM, AArch64 & X86 parsers. this fixes crash-27-x64-too-many-bits-for-uint64_t.c 2016-05-31 09:40:38 +08:00
Nguyen Anh Quynh 5c36dc3ab7 arm: fix c-crashers/crash-19-arm-unable-to-encode-mcoperand.c 2016-05-31 02:12:11 +08:00
Nguyen Anh Quynh e644380b1b handle parser error in getIntVal(), getAPIntVal() & Lex(). this fixes some crashes in c-crashes 2016-05-30 00:04:26 +08:00
Nguyen Anh Quynh 7b39272a58 arm: propagate more error back to ks_asm() 2016-05-28 17:51:35 +08:00
Nguyen Anh Quynh 559db9987e arm: propagate more parser error to ks_asm() 2016-05-28 14:37:13 +08:00
Nguyen Anh Quynh e806c16a88 arm: propagate error from ARMAsmParser::validateTargetOperandClass(). this fixes crash-16-expression-value-must-be-representable-in-32-bits.c 2016-05-28 01:11:08 +08:00
Fotis Loukos 1669b95206 Fixed relative address issues for ARM (Issue #108)
Fixed relative address encoding for branches at ARM and Thumb mode.
Also added correct checks for out of range branches. Finally removed
a check for Thumb mode that would never succeed.
2016-05-27 12:32:22 +03:00
Nguyen Anh Quynh f719c95bee remove assert() from AsmToken::getStringContents() 2016-05-22 19:03:54 +08:00
Nguyen Anh Quynh 3955891035 propagate error from encodeInstruction() back to ks_asm(). this fixes an issue in #9 2016-05-22 16:32:28 +08:00
Ingmar Steen a8ea632327 Add and use ARMTargetStreamer from llvm.
Added the missing ARMTargetStreamer from llvm, instantiate it in
ARMAsmParser, use it to implement constant pool.
2016-05-06 15:01:45 +02:00
Nguyen Anh Quynh 66bdae0df7 arm: propagate INVALIDOPERAND & MISSINGFEATURE from parser to frontend API. this partly handles issue #28 2016-05-06 17:07:35 +08:00
Nguyen Anh Quynh 9f1a353f68 import 2016-04-28 21:06:49 +08:00