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
diff --git a/lib/CodeGen/InstrSelection/InstrForest.cpp b/lib/CodeGen/InstrSelection/InstrForest.cpp
index 5701ba4..a1afede 100644
--- a/lib/CodeGen/InstrSelection/InstrForest.cpp
+++ b/lib/CodeGen/InstrSelection/InstrForest.cpp
@@ -253,7 +253,7 @@
void
InstrForest::dump() const
{
- for (hash_set<InstructionNode*, ptrHashFunc >::const_iterator
+ for (hash_set<InstructionNode*>::const_iterator
treeRootIter = treeRoots.begin();
treeRootIter != treeRoots.end();
++treeRootIter)
diff --git a/lib/CodeGen/InstrSelection/InstrSelection.cpp b/lib/CodeGen/InstrSelection/InstrSelection.cpp
index c8efb3b..0526dda 100644
--- a/lib/CodeGen/InstrSelection/InstrSelection.cpp
+++ b/lib/CodeGen/InstrSelection/InstrSelection.cpp
@@ -52,13 +52,12 @@
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)