projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove dead code.
[oota-llvm.git]
/
utils
/
TableGen
/
SequenceToOffsetTable.h
diff --git
a/utils/TableGen/SequenceToOffsetTable.h
b/utils/TableGen/SequenceToOffsetTable.h
index 60202b5ade077d90a5f9255de8d022afbd7bfb22..66506ea0638f0bc6618923180b20ca168e6d6c5d 100644
(file)
--- a/
utils/TableGen/SequenceToOffsetTable.h
+++ b/
utils/TableGen/SequenceToOffsetTable.h
@@
-13,15
+13,16
@@
//
//===----------------------------------------------------------------------===//
//
//===----------------------------------------------------------------------===//
-#ifndef
TBLGEN_SEQUENCE_TO_OFFSET_
TABLE_H
-#define
TBLGEN_SEQUENCE_TO_OFFSET_
TABLE_H
+#ifndef
LLVM_UTILS_TABLEGEN_SEQUENCETOOFFSET
TABLE_H
+#define
LLVM_UTILS_TABLEGEN_SEQUENCETOOFFSET
TABLE_H
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/raw_ostream.h"
-#include <functional>
#include <algorithm>
#include <algorithm>
-#include <vector>
#include <cassert>
#include <cctype>
#include <cassert>
#include <cctype>
+#include <functional>
+#include <map>
+#include <vector>
namespace llvm {
namespace llvm {
@@
-82,7
+83,12
@@
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");