Add includes and use std:: for standard library calls to make code
[oota-llvm.git] / lib / CodeGen / ModuloScheduling / MSchedGraph.cpp
index 5bdcc9afcf28dd2707819056ddbec5adb504448e..17b38553685ba59a47c742fa10e7415c2afdb54a 100644 (file)
@@ -18,6 +18,7 @@
 #include "llvm/Target/TargetInstrInfo.h"
 #include "llvm/Support/Debug.h"
 #include <cstdlib>
+#include <algorithm>
 using namespace llvm;
 
 MSchedGraphNode::MSchedGraphNode(const MachineInstr* inst, 
@@ -67,7 +68,7 @@ bool MSchedGraphNode::isSuccessor(MSchedGraphNode *succ) {
 
 
 bool MSchedGraphNode::isPredecessor(MSchedGraphNode *pred) {
-  if(find( Predecessors.begin(),  Predecessors.end(), pred) !=   Predecessors.end())
+  if(std::find( Predecessors.begin(),  Predecessors.end(), pred) !=   Predecessors.end())
     return true;
   else
     return false;