[llvm-commits] CVS: llvm/include/llvm/Analysis/AliasAnalysis.h CallGraph.h Dominators.h FindUsedTypes.h IntervalPartition.h LoopInfo.h LoopPass.h PostDominators.h ProfileInfo.h ScalarEvolution.h ValueNumbering.h
Devang Patel
dpatel at apple.com
Wed May 2 14:41:29 PDT 2007
Changes in directory llvm/include/llvm/Analysis:
AliasAnalysis.h updated: 1.29 -> 1.30
CallGraph.h updated: 1.54 -> 1.55
Dominators.h updated: 1.77 -> 1.78
FindUsedTypes.h updated: 1.30 -> 1.31
IntervalPartition.h updated: 1.24 -> 1.25
LoopInfo.h updated: 1.64 -> 1.65
LoopPass.h updated: 1.16 -> 1.17
PostDominators.h updated: 1.18 -> 1.19
ProfileInfo.h updated: 1.6 -> 1.7
ScalarEvolution.h updated: 1.17 -> 1.18
ValueNumbering.h updated: 1.11 -> 1.12
---
Log message:
Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces
static const int, which defauts PassID based pass identification.
---
Diffs of the changes: (+15 -15)
AliasAnalysis.h | 2 +-
CallGraph.h | 2 +-
Dominators.h | 6 +++---
FindUsedTypes.h | 2 +-
IntervalPartition.h | 2 +-
LoopInfo.h | 2 +-
LoopPass.h | 2 +-
PostDominators.h | 6 +++---
ProfileInfo.h | 2 +-
ScalarEvolution.h | 2 +-
ValueNumbering.h | 2 +-
11 files changed, 15 insertions(+), 15 deletions(-)
Index: llvm/include/llvm/Analysis/AliasAnalysis.h
diff -u llvm/include/llvm/Analysis/AliasAnalysis.h:1.29 llvm/include/llvm/Analysis/AliasAnalysis.h:1.30
--- llvm/include/llvm/Analysis/AliasAnalysis.h:1.29 Tue May 1 16:15:46 2007
+++ llvm/include/llvm/Analysis/AliasAnalysis.h Wed May 2 16:39:18 2007
@@ -61,7 +61,7 @@
virtual void getAnalysisUsage(AnalysisUsage &AU) const;
public:
- static const int ID; // Class identification, replacement for typeinfo
+ static const char ID; // Class identification, replacement for typeinfo
AliasAnalysis() : TD(0), AA(0) {}
virtual ~AliasAnalysis(); // We want to be subclassed
Index: llvm/include/llvm/Analysis/CallGraph.h
diff -u llvm/include/llvm/Analysis/CallGraph.h:1.54 llvm/include/llvm/Analysis/CallGraph.h:1.55
--- llvm/include/llvm/Analysis/CallGraph.h:1.54 Tue May 1 16:15:46 2007
+++ llvm/include/llvm/Analysis/CallGraph.h Wed May 2 16:39:18 2007
@@ -73,7 +73,7 @@
FunctionMapTy FunctionMap; // Map from a function to its node
public:
- static const int ID; // Class identification, replacement for typeinfo
+ static const char ID; // Class identification, replacement for typeinfo
//===---------------------------------------------------------------------
// Accessors...
//
Index: llvm/include/llvm/Analysis/Dominators.h
diff -u llvm/include/llvm/Analysis/Dominators.h:1.77 llvm/include/llvm/Analysis/Dominators.h:1.78
--- llvm/include/llvm/Analysis/Dominators.h:1.77 Tue May 1 16:15:46 2007
+++ llvm/include/llvm/Analysis/Dominators.h Wed May 2 16:39:18 2007
@@ -208,7 +208,7 @@
///
class DominatorTree : public DominatorTreeBase {
public:
- static const int ID; // Pass ID, replacement for typeid
+ static const char ID; // Pass ID, replacement for typeid
DominatorTree() : DominatorTreeBase((intptr_t)&ID, false) {}
BasicBlock *getRoot() const {
@@ -399,7 +399,7 @@
class ETForest : public ETForestBase {
public:
- static const int ID; // Pass identifcation, replacement for typeid
+ static const char ID; // Pass identifcation, replacement for typeid
ETForest() : ETForestBase((intptr_t)&ID, false) {}
@@ -477,7 +477,7 @@
///
class DominanceFrontier : public DominanceFrontierBase {
public:
- static const int ID; // Pass ID, replacement for typeid
+ static const char ID; // Pass ID, replacement for typeid
DominanceFrontier() :
DominanceFrontierBase((intptr_t)& ID, false) {}
Index: llvm/include/llvm/Analysis/FindUsedTypes.h
diff -u llvm/include/llvm/Analysis/FindUsedTypes.h:1.30 llvm/include/llvm/Analysis/FindUsedTypes.h:1.31
--- llvm/include/llvm/Analysis/FindUsedTypes.h:1.30 Tue May 1 16:15:46 2007
+++ llvm/include/llvm/Analysis/FindUsedTypes.h Wed May 2 16:39:18 2007
@@ -24,7 +24,7 @@
class FindUsedTypes : public ModulePass {
std::set<const Type *> UsedTypes;
public:
- static const int ID; // Pass identifcation, replacement for typeid
+ static const char ID; // Pass identifcation, replacement for typeid
FindUsedTypes() : ModulePass((intptr_t)&ID) {}
/// getTypes - After the pass has been run, return the set containing all of
Index: llvm/include/llvm/Analysis/IntervalPartition.h
diff -u llvm/include/llvm/Analysis/IntervalPartition.h:1.24 llvm/include/llvm/Analysis/IntervalPartition.h:1.25
--- llvm/include/llvm/Analysis/IntervalPartition.h:1.24 Tue May 1 16:15:46 2007
+++ llvm/include/llvm/Analysis/IntervalPartition.h Wed May 2 16:39:18 2007
@@ -45,7 +45,7 @@
std::vector<Interval*> Intervals;
public:
- static const int ID; // Pass identifcation, replacement for typeid
+ static const char ID; // Pass identifcation, replacement for typeid
IntervalPartition() : FunctionPass((intptr_t)&ID), RootInterval(0) {}
Index: llvm/include/llvm/Analysis/LoopInfo.h
diff -u llvm/include/llvm/Analysis/LoopInfo.h:1.64 llvm/include/llvm/Analysis/LoopInfo.h:1.65
--- llvm/include/llvm/Analysis/LoopInfo.h:1.64 Tue May 1 16:15:46 2007
+++ llvm/include/llvm/Analysis/LoopInfo.h Wed May 2 16:39:18 2007
@@ -241,7 +241,7 @@
std::vector<Loop*> TopLevelLoops;
friend class Loop;
public:
- static const int ID; // Pass identifcation, replacement for typeid
+ static const char ID; // Pass identifcation, replacement for typeid
LoopInfo() : FunctionPass((intptr_t)&ID) {}
~LoopInfo() { releaseMemory(); }
Index: llvm/include/llvm/Analysis/LoopPass.h
diff -u llvm/include/llvm/Analysis/LoopPass.h:1.16 llvm/include/llvm/Analysis/LoopPass.h:1.17
--- llvm/include/llvm/Analysis/LoopPass.h:1.16 Tue May 1 16:15:46 2007
+++ llvm/include/llvm/Analysis/LoopPass.h Wed May 2 16:39:18 2007
@@ -68,7 +68,7 @@
class LPPassManager : public FunctionPass, public PMDataManager {
public:
- static const int ID;
+ static const char ID;
LPPassManager(int Depth);
/// run - Execute all of the passes scheduled for execution. Keep track of
Index: llvm/include/llvm/Analysis/PostDominators.h
diff -u llvm/include/llvm/Analysis/PostDominators.h:1.18 llvm/include/llvm/Analysis/PostDominators.h:1.19
--- llvm/include/llvm/Analysis/PostDominators.h:1.18 Tue May 1 16:15:46 2007
+++ llvm/include/llvm/Analysis/PostDominators.h Wed May 2 16:39:18 2007
@@ -22,7 +22,7 @@
/// compute the a post-dominator tree.
///
struct PostDominatorTree : public DominatorTreeBase {
- static const int ID; // Pass identifcation, replacement for typeid
+ static const char ID; // Pass identifcation, replacement for typeid
PostDominatorTree() :
DominatorTreeBase((intptr_t)&ID, true) {}
@@ -54,7 +54,7 @@
/// PostETForest Class - Concrete subclass of ETForestBase that is used to
/// compute a forwards post-dominator ET-Forest.
struct PostETForest : public ETForestBase {
- static const int ID;
+ static const char ID;
PostETForest() : ETForestBase((intptr_t)&ID, true) {}
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
@@ -79,7 +79,7 @@
/// used to compute the a post-dominance frontier.
///
struct PostDominanceFrontier : public DominanceFrontierBase {
- static const int ID;
+ static const char ID;
PostDominanceFrontier()
: DominanceFrontierBase((intptr_t) &ID, true) {}
Index: llvm/include/llvm/Analysis/ProfileInfo.h
diff -u llvm/include/llvm/Analysis/ProfileInfo.h:1.6 llvm/include/llvm/Analysis/ProfileInfo.h:1.7
--- llvm/include/llvm/Analysis/ProfileInfo.h:1.6 Tue May 1 16:15:46 2007
+++ llvm/include/llvm/Analysis/ProfileInfo.h Wed May 2 16:39:18 2007
@@ -38,7 +38,7 @@
// entered.
std::map<std::pair<BasicBlock*, BasicBlock*>, unsigned> EdgeCounts;
public:
- static const int ID; // Class identification, replacement for typeinfo
+ static const char ID; // Class identification, replacement for typeinfo
virtual ~ProfileInfo(); // We want to be subclassed
//===------------------------------------------------------------------===//
Index: llvm/include/llvm/Analysis/ScalarEvolution.h
diff -u llvm/include/llvm/Analysis/ScalarEvolution.h:1.17 llvm/include/llvm/Analysis/ScalarEvolution.h:1.18
--- llvm/include/llvm/Analysis/ScalarEvolution.h:1.17 Tue May 1 16:15:46 2007
+++ llvm/include/llvm/Analysis/ScalarEvolution.h Wed May 2 16:39:18 2007
@@ -197,7 +197,7 @@
class ScalarEvolution : public FunctionPass {
void *Impl; // ScalarEvolution uses the pimpl pattern
public:
- static const int ID; // Pass identifcation, replacement for typeid
+ static const char ID; // Pass identifcation, replacement for typeid
ScalarEvolution() : FunctionPass((intptr_t)&ID), Impl(0) {}
/// getSCEV - Return a SCEV expression handle for the full generality of the
Index: llvm/include/llvm/Analysis/ValueNumbering.h
diff -u llvm/include/llvm/Analysis/ValueNumbering.h:1.11 llvm/include/llvm/Analysis/ValueNumbering.h:1.12
--- llvm/include/llvm/Analysis/ValueNumbering.h:1.11 Tue May 1 16:15:46 2007
+++ llvm/include/llvm/Analysis/ValueNumbering.h Wed May 2 16:39:18 2007
@@ -29,7 +29,7 @@
class Instruction;
struct ValueNumbering {
- static const int ID; // Class identification, replacement for typeinfo
+ static const char ID; // Class identification, replacement for typeinfo
virtual ~ValueNumbering(); // We want to be subclassed
/// getEqualNumberNodes - Return nodes with the same value number as the
More information about the llvm-commits
mailing list