mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-07 16:54:48 +00:00
hasDisassembler should return false if disassembler isn't available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58682 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6e1b1253e0
commit
afc0e0ac1c
@ -30,10 +30,14 @@ bool llvm::sys::hasDisassembler(void)
|
||||
{
|
||||
#if defined (__i386__) || defined (__amd64__) || defined (__x86_64__)
|
||||
// We have option to enable udis86 library.
|
||||
# if USE_UDIS86
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
std::string llvm::sys::disassembleBuffer(uint8_t* start, size_t length,
|
||||
|
Loading…
Reference in New Issue
Block a user