mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +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__)
|
#if defined (__i386__) || defined (__amd64__) || defined (__x86_64__)
|
||||||
// We have option to enable udis86 library.
|
// We have option to enable udis86 library.
|
||||||
|
# if USE_UDIS86
|
||||||
return true;
|
return true;
|
||||||
#else
|
#else
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
|
#else
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string llvm::sys::disassembleBuffer(uint8_t* start, size_t length,
|
std::string llvm::sys::disassembleBuffer(uint8_t* start, size_t length,
|
||||||
|
Loading…
Reference in New Issue
Block a user