[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp CompleteBottomUp.cpp EquivClassGraphs.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Mar 15 14:10:19 PST 2005
Changes in directory llvm/lib/Analysis/DataStructure:
BottomUpClosure.cpp updated: 1.96 -> 1.97
CompleteBottomUp.cpp updated: 1.20 -> 1.21
EquivClassGraphs.cpp updated: 1.30 -> 1.31
---
Log message:
fix crashes when we only have a prototype for main.
---
Diffs of the changes: (+3 -3)
BottomUpClosure.cpp | 2 +-
CompleteBottomUp.cpp | 2 +-
EquivClassGraphs.cpp | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp
diff -u llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp:1.96 llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp:1.97
--- llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp:1.96 Tue Mar 15 10:55:04 2005
+++ llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp Tue Mar 15 16:10:04 2005
@@ -85,7 +85,7 @@
// Merge the globals variables (not the calls) from the globals graph back
// into the main function's graph so that the main function contains all of
// the information about global pools and GV usage in the program.
- if (MainFunc) {
+ if (MainFunc && !MainFunc->isExternal()) {
DSGraph &MainGraph = getOrCreateGraph(MainFunc);
const DSGraph &GG = *MainGraph.getGlobalsGraph();
ReachabilityCloner RC(MainGraph, GG,
Index: llvm/lib/Analysis/DataStructure/CompleteBottomUp.cpp
diff -u llvm/lib/Analysis/DataStructure/CompleteBottomUp.cpp:1.20 llvm/lib/Analysis/DataStructure/CompleteBottomUp.cpp:1.21
--- llvm/lib/Analysis/DataStructure/CompleteBottomUp.cpp:1.20 Tue Mar 15 10:55:04 2005
+++ llvm/lib/Analysis/DataStructure/CompleteBottomUp.cpp Tue Mar 15 16:10:04 2005
@@ -94,7 +94,7 @@
// Merge the globals variables (not the calls) from the globals graph back
// into the main function's graph so that the main function contains all of
// the information about global pools and GV usage in the program.
- if (MainFunc) {
+ if (MainFunc && !MainFunc->isExternal()) {
DSGraph &MainGraph = getOrCreateGraph(*MainFunc);
const DSGraph &GG = *MainGraph.getGlobalsGraph();
ReachabilityCloner RC(MainGraph, GG,
Index: llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp
diff -u llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp:1.30 llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp:1.31
--- llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp:1.30 Tue Mar 15 11:14:09 2005
+++ llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp Tue Mar 15 16:10:04 2005
@@ -106,7 +106,7 @@
// Merge the globals variables (not the calls) from the globals graph back
// into the main function's graph so that the main function contains all of
// the information about global pools and GV usage in the program.
- if (MainFunc) {
+ if (MainFunc && !MainFunc->isExternal()) {
DSGraph &MainGraph = getOrCreateGraph(*MainFunc);
const DSGraph &GG = *MainGraph.getGlobalsGraph();
ReachabilityCloner RC(MainGraph, GG,
More information about the llvm-commits
mailing list