From 10d4b040ac2beaa4a70c3ce835aead16f46f2518 Mon Sep 17 00:00:00 2001 From: Jim Laskey Date: Thu, 13 Jul 2006 22:17:08 +0000 Subject: Clean up. llvm-svn: 29137 --- llvm/utils/TableGen/CodeEmitterGen.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'llvm/utils/TableGen') diff --git a/llvm/utils/TableGen/CodeEmitterGen.cpp b/llvm/utils/TableGen/CodeEmitterGen.cpp index 24235381b95..f0a02872ceb 100644 --- a/llvm/utils/TableGen/CodeEmitterGen.cpp +++ b/llvm/utils/TableGen/CodeEmitterGen.cpp @@ -49,7 +49,10 @@ void CodeEmitterGen::reverseBits(std::vector &Insts) { } -int CodeEmitterGen::getVariableBit(const std::string &VarName, BitsInit *BI, int bit){ +// If the VarBitInit at position 'bit' matches the specified variable then +// return the variable bit position. Otherwise return -1. +int CodeEmitterGen::getVariableBit(const std::string &VarName, + BitsInit *BI, int bit) { if (VarBitInit *VBI = dynamic_cast(BI->getBit(bit))) { TypedInit *TI = VBI->getVariable(); -- cgit v1.2.3