summaryrefslogtreecommitdiff
path: root/utils/TableGen/SequenceToOffsetTable.h
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2012-09-15 01:22:42 +0000
committerCraig Topper <craig.topper@gmail.com>2012-09-15 01:22:42 +0000
commit5974c31acbf5368ffc18b23c849d0c823f91f25e (patch)
tree15b85d48e246ae3f2252195d933302465207ccfd /utils/TableGen/SequenceToOffsetTable.h
parentf934d159ae6b57f05d8163265b9deaa29315d2e7 (diff)
downloadllvm-5974c31acbf5368ffc18b23c849d0c823f91f25e.tar.gz
llvm-5974c31acbf5368ffc18b23c849d0c823f91f25e.tar.bz2
llvm-5974c31acbf5368ffc18b23c849d0c823f91f25e.tar.xz
Revert r163878 as it breaks on targets with alternate register names. Such targets do not exist in the main tree so this was not noticed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163959 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/SequenceToOffsetTable.h')
-rw-r--r--utils/TableGen/SequenceToOffsetTable.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/TableGen/SequenceToOffsetTable.h b/utils/TableGen/SequenceToOffsetTable.h
index a4f16ca9a6..d4db152a96 100644
--- a/utils/TableGen/SequenceToOffsetTable.h
+++ b/utils/TableGen/SequenceToOffsetTable.h
@@ -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.