Skip to content

Commit adbe155

Browse files
[polly] Drop const from return types (NFC) (#140837)
1 parent a4782ff commit adbe155

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

polly/include/polly/CodeGen/IslNodeBuilder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class IslNodeBuilder {
112112
BlockGenerator &getBlockGenerator() { return BlockGen; }
113113

114114
/// Return the parallel subfunctions that have been created.
115-
const ArrayRef<Function *> getParallelSubfunctions() const {
115+
ArrayRef<Function *> getParallelSubfunctions() const {
116116
return ParallelSubfunctions;
117117
}
118118

polly/include/polly/ScopInfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -855,10 +855,10 @@ class MemoryAccess final {
855855
}
856856

857857
/// Return a string representation of the access's reduction type.
858-
const std::string getReductionOperatorStr() const;
858+
std::string getReductionOperatorStr() const;
859859

860860
/// Return a string representation of the reduction type @p RT.
861-
static const std::string getReductionOperatorStr(ReductionType RT);
861+
static std::string getReductionOperatorStr(ReductionType RT);
862862

863863
/// Return the element type of the accessed array wrt. this access.
864864
Type *getElementType() const { return ElementType; }

polly/lib/Analysis/ScopInfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ void MemoryAccess::updateDimensionality() {
527527
}
528528
}
529529

530-
const std::string
530+
std::string
531531
MemoryAccess::getReductionOperatorStr(MemoryAccess::ReductionType RT) {
532532
switch (RT) {
533533
case MemoryAccess::RT_NONE:
@@ -910,7 +910,7 @@ void MemoryAccess::realignParams() {
910910
AccessRelation = AccessRelation.align_params(CtxSpace);
911911
}
912912

913-
const std::string MemoryAccess::getReductionOperatorStr() const {
913+
std::string MemoryAccess::getReductionOperatorStr() const {
914914
return MemoryAccess::getReductionOperatorStr(getReductionType());
915915
}
916916

polly/lib/CodeGen/IslAst.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ static isl_printer *printLine(__isl_take isl_printer *Printer,
134134
}
135135

136136
/// Return all broken reductions as a string of clauses (OpenMP style).
137-
static const std::string getBrokenReductionsStr(const isl::ast_node &Node) {
137+
static std::string getBrokenReductionsStr(const isl::ast_node &Node) {
138138
IslAstInfo::MemoryAccessSet *BrokenReductions;
139139
std::string str;
140140

0 commit comments

Comments
 (0)