[llvm-commits] [llvm] r101382 - /llvm/trunk/lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp
Johnny Chen
johnny.chen at apple.com
Thu Apr 15 11:13:51 PDT 2010
Author: johnny
Date: Thu Apr 15 13:13:51 2010
New Revision: 101382
URL: http://llvm.org/viewvc/llvm-project?rev=101382&view=rev
Log:
DEBUG() print out "Unknown format" msg.
Modified:
llvm/trunk/lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp
Modified: llvm/trunk/lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp?rev=101382&r1=101381&r2=101382&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp (original)
+++ llvm/trunk/lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp Thu Apr 15 13:13:51 2010
@@ -3287,8 +3287,10 @@
/// performed by the API clients to improve performance.
ARMBasicMCBuilder *llvm::CreateMCBuilder(unsigned Opcode, ARMFormat Format) {
// For "Unknown format", fail by returning a NULL pointer.
- if ((unsigned)Format >= (array_lengthof(FuncPtrs) - 1))
+ if ((unsigned)Format >= (array_lengthof(FuncPtrs) - 1)) {
+ DEBUG(errs() << "Unknown format\n");
return 0;
+ }
return new ARMBasicMCBuilder(Opcode, Format,
ARMInsts[Opcode].getNumOperands());
More information about the llvm-commits
mailing list