Clean up hash table usage

Remove opaque pointer used for C compatibility which isn't an issue


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2001-07-23 03:50:57 +00:00
parent 6c5a32d545
commit 75279ccc75
5 changed files with 54 additions and 79 deletions

View File

@@ -253,7 +253,7 @@ InstrForest::buildTreesForMethod(Method *method)
void
InstrForest::dump() const
{
for (hash_set<InstructionNode*, ptrHashFunc >::const_iterator
for (hash_set<InstructionNode*>::const_iterator
treeRootIter = treeRoots.begin();
treeRootIter != treeRoots.end();
++treeRootIter)

View File

@@ -52,13 +52,12 @@ bool SelectInstructionsForMethod(Method* method, TargetMachine &Target) {
InstrForest instrForest;
instrForest.buildTreesForMethod(method);
const hash_set<InstructionNode*, ptrHashFunc>&
treeRoots = instrForest.getRootSet();
const hash_set<InstructionNode*> &treeRoots = instrForest.getRootSet();
//
// Invoke BURG instruction selection for each tree
//
for (hash_set<InstructionNode*, ptrHashFunc >::const_iterator
for (hash_set<InstructionNode*>::const_iterator
treeRootIter = treeRoots.begin();
treeRootIter != treeRoots.end();
++treeRootIter)