llvm.org GIT mirror llvm / af992f7
Constify to catch bugs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41751 91177308-0d34-0410-b5e6-96231b3b80d8 David Greene 12 years ago
2 changed file(s) with 5 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
309309 /// join - Join two live intervals (this, and other) together. This applies
310310 /// mappings to the value numbers in the LHS/RHS intervals as specified. If
311311 /// the intervals are not joinable, this aborts.
312 void join(LiveInterval &Other, int *ValNoAssignments,
313 int *RHSValNoAssignments, SmallVector &NewVNInfo);
312 void join(LiveInterval &Other, const int *ValNoAssignments,
313 const int *RHSValNoAssignments,
314 SmallVector &NewVNInfo);
314315
315316 /// removeRange - Remove the specified range from this interval. Note that
316317 /// the range must already be in this interval in its entirety.
284284 /// join - Join two live intervals (this, and other) together. This applies
285285 /// mappings to the value numbers in the LHS/RHS intervals as specified. If
286286 /// the intervals are not joinable, this aborts.
287 void LiveInterval::join(LiveInterval &Other, int *LHSValNoAssignments,
288 int *RHSValNoAssignments,
287 void LiveInterval::join(LiveInterval &Other, const int *LHSValNoAssignments,
288 const int *RHSValNoAssignments,
289289 SmallVector &NewVNInfo) {
290290 // Determine if any of our live range values are mapped. This is uncommon, so
291291 // we want to avoid the interval scan if not.