File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
include/llvm/Transforms/Utils Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -143,11 +143,12 @@ class SCCPSolver {
143
143
144
144
// / getTrackedGlobals - Get and return the set of inferred initializers for
145
145
// / global variables.
146
- const DenseMap<GlobalVariable *, ValueLatticeElement> &getTrackedGlobals ();
146
+ const DenseMap<GlobalVariable *, ValueLatticeElement> &
147
+ getTrackedGlobals () const ;
147
148
148
149
// / getMRVFunctionsTracked - Get the set of functions which return multiple
149
150
// / values tracked by the pass.
150
- const SmallPtrSet<Function *, 16 > &getMRVFunctionsTracked ();
151
+ const SmallPtrSet<Function *, 16 > &getMRVFunctionsTracked () const ;
151
152
152
153
// / markOverdefined - Mark the specified value overdefined. This
153
154
// / works with both scalars and structs.
Original file line number Diff line number Diff line change @@ -839,15 +839,16 @@ class SCCPInstVisitor : public InstVisitor<SCCPInstVisitor> {
839
839
return I->second ;
840
840
}
841
841
842
- const MapVector<Function *, ValueLatticeElement> &getTrackedRetVals () {
842
+ const MapVector<Function *, ValueLatticeElement> &getTrackedRetVals () const {
843
843
return TrackedRetVals;
844
844
}
845
845
846
- const DenseMap<GlobalVariable *, ValueLatticeElement> &getTrackedGlobals () {
846
+ const DenseMap<GlobalVariable *, ValueLatticeElement> &
847
+ getTrackedGlobals () const {
847
848
return TrackedGlobals;
848
849
}
849
850
850
- const SmallPtrSet<Function *, 16 > &getMRVFunctionsTracked () {
851
+ const SmallPtrSet<Function *, 16 > &getMRVFunctionsTracked () const {
851
852
return MRVFunctionsTracked;
852
853
}
853
854
@@ -2226,11 +2227,11 @@ SCCPSolver::getTrackedRetVals() const {
2226
2227
}
2227
2228
2228
2229
const DenseMap<GlobalVariable *, ValueLatticeElement> &
2229
- SCCPSolver::getTrackedGlobals () {
2230
+ SCCPSolver::getTrackedGlobals () const {
2230
2231
return Visitor->getTrackedGlobals ();
2231
2232
}
2232
2233
2233
- const SmallPtrSet<Function *, 16 > &SCCPSolver::getMRVFunctionsTracked () {
2234
+ const SmallPtrSet<Function *, 16 > &SCCPSolver::getMRVFunctionsTracked () const {
2234
2235
return Visitor->getMRVFunctionsTracked ();
2235
2236
}
2236
2237
You can’t perform that action at this time.
0 commit comments