[llvm-commits] [llvm] r58682 - /llvm/trunk/lib/System/Disassembler.cpp
Evan Cheng
evan.cheng at apple.com
Mon Nov 3 22:09:39 PST 2008
Author: evancheng
Date: Tue Nov 4 00:09:38 2008
New Revision: 58682
URL: http://llvm.org/viewvc/llvm-project?rev=58682&view=rev
Log:
hasDisassembler should return false if disassembler isn't available.
Modified:
llvm/trunk/lib/System/Disassembler.cpp
Modified: llvm/trunk/lib/System/Disassembler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Disassembler.cpp?rev=58682&r1=58681&r2=58682&view=diff
==============================================================================
--- llvm/trunk/lib/System/Disassembler.cpp (original)
+++ llvm/trunk/lib/System/Disassembler.cpp Tue Nov 4 00:09:38 2008
@@ -30,10 +30,14 @@
{
#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,
More information about the llvm-commits
mailing list