diff options
| author | Mehdi Amini <mehdi.amini@apple.com> | 2016-08-08 18:51:05 +0000 | 
|---|---|---|
| committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-08-08 18:51:05 +0000 | 
| commit | c137c28c8be063501d338030d39d1f1214dc93b1 (patch) | |
| tree | 7372a63fa48b24f7b7fe321fa1292a8a991e7821 /llvm/lib/Analysis | |
| parent | 70ba8c506c0b6d11dfa14fc9e4c4a0f69e12c430 (diff) | |
| download | bcm5719-llvm-c137c28c8be063501d338030d39d1f1214dc93b1.tar.gz bcm5719-llvm-c137c28c8be063501d338030d39d1f1214dc93b1.zip | |
RefreshCallGraph does not modify the SCC, adding "const" to make it clear (NFC)
llvm-svn: 278037
Diffstat (limited to 'llvm/lib/Analysis')
| -rw-r--r-- | llvm/lib/Analysis/CallGraphSCCPass.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/llvm/lib/Analysis/CallGraphSCCPass.cpp b/llvm/lib/Analysis/CallGraphSCCPass.cpp index b1e81a407a3..34dc88ebd1c 100644 --- a/llvm/lib/Analysis/CallGraphSCCPass.cpp +++ b/llvm/lib/Analysis/CallGraphSCCPass.cpp @@ -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, CallGraphSCC &CurSCC,  /// 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() | 

