diff options
author | Adrian Thurston <thurston@complang.org> | 2013-02-16 21:14:21 -0500 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2013-02-16 21:14:21 -0500 |
commit | 48bcc5e2138d6cb88142061e7e7dd810a0024f9d (patch) | |
tree | 22a9fad6294425d8f72db9c026afab976084dbd0 /colm/redbuild.cc | |
parent | eae5989e1e20069ffe0ae1e080a8389be7760a1e (diff) | |
download | colm-48bcc5e2138d6cb88142061e7e7dd810a0024f9d.tar.gz |
removed name from NameInst
Diffstat (limited to 'colm/redbuild.cc')
-rw-r--r-- | colm/redbuild.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/colm/redbuild.cc b/colm/redbuild.cc index 87d73586..81491703 100644 --- a/colm/redbuild.cc +++ b/colm/redbuild.cc @@ -92,10 +92,9 @@ void RedFsmBuild::initStateList( unsigned long length ) redFsm->nextStateId = redFsm->stateList.length(); } -void RedFsmBuild::addEntryPoint( int entryId, char *name, unsigned long entryState ) +void RedFsmBuild::addEntryPoint( int entryId, unsigned long entryState ) { redFsm->entryPointIds.append( entryState ); - redFsm->entryPointNames.append( name ); redFsm->redEntryMap.insert( entryId, entryState ); } @@ -483,11 +482,9 @@ void RedFsmBuild::makeEntryPoints() for ( EntryMap::Iter en = fsm->entryPoints; en.lte(); en++ ) { /* Get the name instantiation from nameIndex. */ - NameInst *nameInst = fsm->nameIndex[en->key]; FsmState *state = en->value; - char *name = nameInst->name; long entry = state->alg.stateNum; - addEntryPoint( en->key, name, entry ); + addEntryPoint( en->key, entry ); } for ( RegionList::Iter reg = pd->regionList; reg.lte(); reg++ ) { |