diff options
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/InstrSelection/InstrForest.cpp | 2 | ||||
-rw-r--r-- | lib/CodeGen/InstrSelection/InstrSelection.cpp | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/CodeGen/InstrSelection/InstrForest.cpp b/lib/CodeGen/InstrSelection/InstrForest.cpp index 5701ba4e11..a1afedea08 100644 --- a/lib/CodeGen/InstrSelection/InstrForest.cpp +++ b/lib/CodeGen/InstrSelection/InstrForest.cpp @@ -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) diff --git a/lib/CodeGen/InstrSelection/InstrSelection.cpp b/lib/CodeGen/InstrSelection/InstrSelection.cpp index c8efb3bf34..0526dda40e 100644 --- a/lib/CodeGen/InstrSelection/InstrSelection.cpp +++ b/lib/CodeGen/InstrSelection/InstrSelection.cpp @@ -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) |