From: Jean-Luc Duprat Date: Fri, 29 Aug 2014 22:43:30 +0000 (+0000) Subject: Comment only: Annotate loop as per mailing list discussion X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=794003c43159b6e397db66a260f6af2642471232;p=oota-llvm.git Comment only: Annotate loop as per mailing list discussion git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216798 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/TableGen/TGParser.cpp b/lib/TableGen/TGParser.cpp index 7efaa66de27..15039792042 100644 --- a/lib/TableGen/TGParser.cpp +++ b/lib/TableGen/TGParser.cpp @@ -1315,6 +1315,9 @@ Init *TGParser::ParseSimpleValue(Record *CurRec, RecTy *ItemType, // first. We'll first read everything in to a vector, then we can reverse // it to get the bits in the correct order for the BitsInit value. for (unsigned i = 0, e = Vals.size(); i != e; ++i) { + // FIXME: The following two loops would not be duplicated + // if the API was a little more orthogonal. + // bits values are allowed to initialize n bits. if (BitsInit *BI = dyn_cast(Vals[i])) { for (unsigned i = 0, e = BI->getNumBits(); i != e; ++i)