From 20f1b0bafbec56e74514ac15521506141b6daae6 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. llvm-svn: 16539 --- llvm/lib/CodeGen/ModuloScheduling/MSchedGraph.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/ModuloScheduling/MSchedGraph.cpp') diff --git a/llvm/lib/CodeGen/ModuloScheduling/MSchedGraph.cpp b/llvm/lib/CodeGen/ModuloScheduling/MSchedGraph.cpp index 5bdcc9afcf2..17b38553685 100644 --- a/llvm/lib/CodeGen/ModuloScheduling/MSchedGraph.cpp +++ b/llvm/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