summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/ModuloScheduling/MSchedGraph.cpp
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-09-28 14:42:44 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-09-28 14:42:44 +0000
commit20f1b0bafbec56e74514ac15521506141b6daae6 (patch)
treeb6cfc559b0336d93d30e083fce5cfa246370a0ee /llvm/lib/CodeGen/ModuloScheduling/MSchedGraph.cpp
parenta2bb624e35dd313de9ac3ee6e55740dd63caccf4 (diff)
downloadbcm5719-llvm-20f1b0bafbec56e74514ac15521506141b6daae6.tar.gz
bcm5719-llvm-20f1b0bafbec56e74514ac15521506141b6daae6.zip
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
Diffstat (limited to 'llvm/lib/CodeGen/ModuloScheduling/MSchedGraph.cpp')
-rw-r--r--llvm/lib/CodeGen/ModuloScheduling/MSchedGraph.cpp3
1 files changed, 2 insertions, 1 deletions
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 <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;
OpenPOWER on IntegriCloud