projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78637fe
)
Pass the callgraph not the module
author
Chris Lattner
<sabre@nondot.org>
Tue, 20 Apr 2004 21:52:26 +0000
(21:52 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 20 Apr 2004 21:52:26 +0000
(21:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13087
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/IPA/CallGraphSCCPass.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/IPA/CallGraphSCCPass.cpp
b/lib/Analysis/IPA/CallGraphSCCPass.cpp
index 23aedb0731f37e47af3305e011d5e0bfe667ed5d..f4e2efbe1c1a67494e3f1f798938471d257ace43 100644
(file)
--- a/
lib/Analysis/IPA/CallGraphSCCPass.cpp
+++ b/
lib/Analysis/IPA/CallGraphSCCPass.cpp
@@
-30,9
+30,9
@@
void CallGraphSCCPass::getAnalysisUsage(AnalysisUsage &AU) const {
bool CallGraphSCCPass::run(Module &M) {
CallGraph &CG = getAnalysis<CallGraph>();
- bool Changed = doInitialization(
M
);
+ bool Changed = doInitialization(
CG
);
for (scc_iterator<CallGraph*> I = scc_begin(&CG), E = scc_end(&CG);
I != E; ++I)
Changed = runOnSCC(*I);
- return Changed | doFinalization(
M
);
+ return Changed | doFinalization(
CG
);
}