From c72c617a4ea3784c9a9f634478dc405ef6b2866b Mon Sep 17 00:00:00 2001 From: Alkis Evlogimenos Date: Tue, 28 Sep 2004 14:42:44 +0000 Subject: Add includes and use std:: for standard library calls to make code compile on windows. This patch was contributed by Paolo Invernizzi. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16539 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/ModuloScheduling/MSchedGraph.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/CodeGen/ModuloScheduling/MSchedGraph.cpp') diff --git a/lib/CodeGen/ModuloScheduling/MSchedGraph.cpp b/lib/CodeGen/ModuloScheduling/MSchedGraph.cpp index 5bdcc9afcf..17b3855368 100644 --- a/lib/CodeGen/ModuloScheduling/MSchedGraph.cpp +++ b/lib/CodeGen/ModuloScheduling/MSchedGraph.cpp @@ -18,6 +18,7 @@ #include "llvm/Target/TargetInstrInfo.h" #include "llvm/Support/Debug.h" #include +#include 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; -- cgit v1.2.3-18-g5258