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:
Evan Cheng 2008-11-04 06:09:38 +00:00
parent 6e1b1253e0
commit afc0e0ac1c

View File

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