[llvm-commits] [llvm] r100247 - /llvm/trunk/utils/TableGen/ARMDecoderEmitter.cpp
Johnny Chen
johnny.chen at apple.com
Fri Apr 2 16:13:52 PDT 2010
Author: johnny
Date: Fri Apr 2 18:13:52 2010
New Revision: 100247
URL: http://llvm.org/viewvc/llvm-project?rev=100247&view=rev
Log:
Move variable "Bits" declaration/definition into the DEBUG block where its usage
is expected.
Modified:
llvm/trunk/utils/TableGen/ARMDecoderEmitter.cpp
Modified: llvm/trunk/utils/TableGen/ARMDecoderEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/ARMDecoderEmitter.cpp?rev=100247&r1=100246&r2=100247&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/ARMDecoderEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/ARMDecoderEmitter.cpp Fri Apr 2 18:13:52 2010
@@ -1547,7 +1547,6 @@
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 @@
}
DEBUG({
+ BitsInit &Bits = getBitsField(Def, "Inst");
+
errs() << " ";
// Dumps the instruction encoding bits.
More information about the llvm-commits
mailing list