From 62e8d738278a04a484e9168886273f8adfaa90e8 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Fri, 2 Apr 2010 23:13:52 +0000 Subject: [PATCH] Move variable "Bits" declaration/definition into the DEBUG block where its usage is expected. llvm-svn: 100247 --- utils/TableGen/ARMDecoderEmitter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/TableGen/ARMDecoderEmitter.cpp b/utils/TableGen/ARMDecoderEmitter.cpp index 12c753b973c..4bb46026d45 100644 --- a/utils/TableGen/ARMDecoderEmitter.cpp +++ b/utils/TableGen/ARMDecoderEmitter.cpp @@ -1547,7 +1547,6 @@ bool ARMDecoderEmitter::ARMDEBackend::populateInstruction( const Record &Def = *CGI.TheDef; const StringRef Name = Def.getName(); uint8_t Form = getByteField(Def, "Form"); - BitsInit &Bits = getBitsField(Def, "Inst"); if (TN == TARGET_ARM) { // FIXME: what about Int_MemBarrierV6 and Int_SyncBarrierV6? @@ -1738,6 +1737,8 @@ bool ARMDecoderEmitter::ARMDEBackend::populateInstruction( } DEBUG({ + BitsInit &Bits = getBitsField(Def, "Inst"); + errs() << " "; // Dumps the instruction encoding bits.