X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=utils%2FTableGen%2FSequenceToOffsetTable.h;h=fcda233dc913cfab82b0341591cfe0b8a628bc4e;hb=22bd64173981bf1251c4b3bfc684207340534ba3;hp=a4f16ca9a6a2ec3ecb6a6e4d97f84366bcd5a763;hpb=4e5babe4f3aa5aaabf8ee91b10f64c9e35f2505c;p=oota-llvm.git diff --git a/utils/TableGen/SequenceToOffsetTable.h b/utils/TableGen/SequenceToOffsetTable.h index a4f16ca9a6a..fcda233dc91 100644 --- a/utils/TableGen/SequenceToOffsetTable.h +++ b/utils/TableGen/SequenceToOffsetTable.h @@ -17,11 +17,11 @@ #define TBLGEN_SEQUENCE_TO_OFFSET_TABLE_H #include "llvm/Support/raw_ostream.h" -#include #include -#include #include #include +#include +#include namespace llvm { @@ -84,7 +84,7 @@ public: bool empty() const { return Seqs.empty(); } /// layout - Computes the final table layout. - unsigned layout() { + void layout() { assert(Entries == 0 && "Can only call layout() once"); // Lay out the table in Seqs iteration order. for (typename SeqMap::iterator I = Seqs.begin(), E = Seqs.end(); I != E; @@ -93,7 +93,6 @@ public: // Include space for a terminator. Entries += I->first.size() + 1; } - return Entries; } /// get - Returns the offset of Seq in the final table.