[llvm] r278037 - RefreshCallGraph does not modify the SCC, adding "const" to make it clear (NFC)
Mehdi Amini via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 8 11:51:05 PDT 2016
Author: mehdi_amini
Date: Mon Aug 8 13:51:05 2016
New Revision: 278037
URL: http://llvm.org/viewvc/llvm-project?rev=278037&view=rev
Log:
RefreshCallGraph does not modify the SCC, adding "const" to make it clear (NFC)
Modified:
llvm/trunk/lib/Analysis/CallGraphSCCPass.cpp
Modified: llvm/trunk/lib/Analysis/CallGraphSCCPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/CallGraphSCCPass.cpp?rev=278037&r1=278036&r2=278037&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/CallGraphSCCPass.cpp (original)
+++ llvm/trunk/lib/Analysis/CallGraphSCCPass.cpp Mon Aug 8 13:51:05 2016
@@ -100,7 +100,7 @@ private:
bool RunPassOnSCC(Pass *P, CallGraphSCC &CurSCC,
CallGraph &CG, bool &CallGraphUpToDate,
bool &DevirtualizedCall);
- bool RefreshCallGraph(CallGraphSCC &CurSCC, CallGraph &CG,
+ bool RefreshCallGraph(const CallGraphSCC &CurSCC, CallGraph &CG,
bool IsCheckingMode);
};
@@ -175,8 +175,8 @@ bool CGPassManager::RunPassOnSCC(Pass *P
/// a function pass like GVN optimizes away stuff feeding the indirect call.
/// This never happens in checking mode.
///
-bool CGPassManager::RefreshCallGraph(CallGraphSCC &CurSCC,
- CallGraph &CG, bool CheckingMode) {
+bool CGPassManager::RefreshCallGraph(const CallGraphSCC &CurSCC, CallGraph &CG,
+ bool CheckingMode) {
DenseMap<Value*, CallGraphNode*> CallSites;
DEBUG(dbgs() << "CGSCCPASSMGR: Refreshing SCC with " << CurSCC.size()
More information about the llvm-commits
mailing list