summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/ARMDecoderEmitter.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-04-02 23:13:52 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-04-02 23:13:52 +0000
commitdbdd3f8b099eaefbeaf090bfd7ef1e7c02fc91dc (patch)
tree5ab98a31bd6a364bf19478ec1bd9e2260bde160c /llvm/utils/TableGen/ARMDecoderEmitter.cpp
parent7d363b63fd875b31c1b11d7fd3db04254a6c91f9 (diff)
downloadbcm5719-llvm-dbdd3f8b099eaefbeaf090bfd7ef1e7c02fc91dc.tar.gz
bcm5719-llvm-dbdd3f8b099eaefbeaf090bfd7ef1e7c02fc91dc.zip
Move variable "Bits" declaration/definition into the DEBUG block where its usage
is expected. llvm-svn: 100247
Diffstat (limited to 'llvm/utils/TableGen/ARMDecoderEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/ARMDecoderEmitter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/ARMDecoderEmitter.cpp b/llvm/utils/TableGen/ARMDecoderEmitter.cpp
index 12c753b973c..4bb46026d45 100644
--- a/llvm/utils/TableGen/ARMDecoderEmitter.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud