projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[TableGen] NFC improving comments about what the tokenized identifiers will contain.
[oota-llvm.git]
/
utils
/
TableGen
/
SequenceToOffsetTable.h
diff --git
a/utils/TableGen/SequenceToOffsetTable.h
b/utils/TableGen/SequenceToOffsetTable.h
index b58de4ccd9b446bb7f5bbcffa0052352fa0d45e4..66506ea0638f0bc6618923180b20ca168e6d6c5d 100644
(file)
--- a/
utils/TableGen/SequenceToOffsetTable.h
+++ b/
utils/TableGen/SequenceToOffsetTable.h
@@
-84,6
+84,11
@@
public:
bool empty() const { return Seqs.empty(); }
bool empty() const { return Seqs.empty(); }
+ unsigned size() const {
+ assert(Entries && "Call layout() before size()");
+ return Entries;
+ }
+
/// layout - Computes the final table layout.
void layout() {
assert(Entries == 0 && "Can only call layout() once");
/// layout - Computes the final table layout.
void layout() {
assert(Entries == 0 && "Can only call layout() once");