Genericize the ReversePostOrderIterator.
[oota-llvm.git] / tools / llvm-dis / llvm-dis.cpp
index 3495465d3f4add6cd55abc8a5a0b598da4e0d9ce..04fc60b2f1fef3c89b9414af1fa7b3f4af609a47 100644 (file)
@@ -124,7 +124,7 @@ int main(int argc, char **argv) {
             std::ostream_iterator<BasicBlock*>(*Out, "\n"));
        break;
       case rpo: {           // Reverse Post Order
-       ReversePostOrderTraversal RPOT(M);
+       ReversePostOrderTraversal<Method*> RPOT(M);
        copy(RPOT.begin(), RPOT.end(),
             std::ostream_iterator<BasicBlock*>(*Out, "\n"));
        break;