[llvm-commits] CVS: llvm/lib/Analysis/ScalarEvolution.cpp LoopInfo.cpp LoadValueNumbering.cpp IntervalPartition.cpp BasicAliasAnalysis.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Fri Sep 3 11:20:03 PDT 2004
Changes in directory llvm/lib/Analysis:
ScalarEvolution.cpp updated: 1.24 -> 1.25
LoopInfo.cpp updated: 1.58 -> 1.59
LoadValueNumbering.cpp updated: 1.21 -> 1.22
IntervalPartition.cpp updated: 1.25 -> 1.26
BasicAliasAnalysis.cpp updated: 1.52 -> 1.53
---
Log message:
Fixes to make LLVM compile with vc7.1.
Patch contributed by Paolo Invernizzi!
---
Diffs of the changes: (+6 -2)
Index: llvm/lib/Analysis/ScalarEvolution.cpp
diff -u llvm/lib/Analysis/ScalarEvolution.cpp:1.24 llvm/lib/Analysis/ScalarEvolution.cpp:1.25
--- llvm/lib/Analysis/ScalarEvolution.cpp:1.24 Wed Sep 1 17:55:35 2004
+++ llvm/lib/Analysis/ScalarEvolution.cpp Fri Sep 3 13:19:51 2004
@@ -75,6 +75,7 @@
#include "llvm/Support/CommandLine.h"
#include "llvm/ADT/Statistic.h"
#include <cmath>
+#include <algorithm>
using namespace llvm;
namespace {
Index: llvm/lib/Analysis/LoopInfo.cpp
diff -u llvm/lib/Analysis/LoopInfo.cpp:1.58 llvm/lib/Analysis/LoopInfo.cpp:1.59
--- llvm/lib/Analysis/LoopInfo.cpp:1.58 Wed Sep 1 17:55:35 2004
+++ llvm/lib/Analysis/LoopInfo.cpp Fri Sep 3 13:19:51 2004
@@ -33,7 +33,7 @@
// Loop implementation
//
bool Loop::contains(const BasicBlock *BB) const {
- return find(Blocks.begin(), Blocks.end(), BB) != Blocks.end();
+ return std::find(Blocks.begin(), Blocks.end(), BB) != Blocks.end();
}
bool Loop::isLoopExit(const BasicBlock *BB) const {
Index: llvm/lib/Analysis/LoadValueNumbering.cpp
diff -u llvm/lib/Analysis/LoadValueNumbering.cpp:1.21 llvm/lib/Analysis/LoadValueNumbering.cpp:1.22
--- llvm/lib/Analysis/LoadValueNumbering.cpp:1.21 Thu Jul 29 12:14:54 2004
+++ llvm/lib/Analysis/LoadValueNumbering.cpp Fri Sep 3 13:19:51 2004
@@ -33,6 +33,7 @@
#include "llvm/Support/CFG.h"
#include "llvm/Target/TargetData.h"
#include <set>
+#include <algorithm>
using namespace llvm;
namespace {
Index: llvm/lib/Analysis/IntervalPartition.cpp
diff -u llvm/lib/Analysis/IntervalPartition.cpp:1.25 llvm/lib/Analysis/IntervalPartition.cpp:1.26
--- llvm/lib/Analysis/IntervalPartition.cpp:1.25 Wed Sep 1 17:55:35 2004
+++ llvm/lib/Analysis/IntervalPartition.cpp Fri Sep 3 13:19:51 2004
@@ -14,6 +14,7 @@
#include "llvm/Analysis/IntervalIterator.h"
#include "llvm/ADT/STLExtras.h"
+#include <algorithm>
namespace llvm {
@@ -26,7 +27,7 @@
// destroy - Reset state back to before function was analyzed
void IntervalPartition::destroy() {
- for_each(Intervals.begin(), Intervals.end(), deleter<Interval>);
+ std::for_each(Intervals.begin(), Intervals.end(), deleter<Interval>);
IntervalMap.clear();
RootInterval = 0;
}
Index: llvm/lib/Analysis/BasicAliasAnalysis.cpp
diff -u llvm/lib/Analysis/BasicAliasAnalysis.cpp:1.52 llvm/lib/Analysis/BasicAliasAnalysis.cpp:1.53
--- llvm/lib/Analysis/BasicAliasAnalysis.cpp:1.52 Thu Jul 29 07:17:34 2004
+++ llvm/lib/Analysis/BasicAliasAnalysis.cpp Fri Sep 3 13:19:51 2004
@@ -22,6 +22,7 @@
#include "llvm/Pass.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Support/GetElementPtrTypeIterator.h"
+#include <algorithm>
using namespace llvm;
// Make sure that anything that uses AliasAnalysis pulls in this file...
More information about the llvm-commits
mailing list