Skip to content

Commit f24ddf6

Browse files
[BOLT] Remove redundant const from return types (NFC)
Identified with readability-const-return-type.
1 parent 1bf531a commit f24ddf6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

bolt/include/bolt/Core/BinaryFunction.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ class BinaryFunction {
10051005
Optional<StringRef> hasRestoredNameRegex(const StringRef NameRegex) const;
10061006

10071007
/// Return a vector of all possible names for the function.
1008-
const std::vector<StringRef> getNames() const {
1008+
std::vector<StringRef> getNames() const {
10091009
std::vector<StringRef> AllNames;
10101010
forEachName([&AllNames](StringRef Name) {
10111011
AllNames.push_back(Name);
@@ -1427,17 +1427,15 @@ class BinaryFunction {
14271427

14281428
const CallSitesType &getColdCallSites() const { return ColdCallSites; }
14291429

1430-
const ArrayRef<uint8_t> getLSDAActionTable() const { return LSDAActionTable; }
1430+
ArrayRef<uint8_t> getLSDAActionTable() const { return LSDAActionTable; }
14311431

14321432
const LSDATypeTableTy &getLSDATypeTable() const { return LSDATypeTable; }
14331433

14341434
const LSDATypeTableTy &getLSDATypeAddressTable() const {
14351435
return LSDATypeAddressTable;
14361436
}
14371437

1438-
const ArrayRef<uint8_t> getLSDATypeIndexTable() const {
1439-
return LSDATypeIndexTable;
1440-
}
1438+
ArrayRef<uint8_t> getLSDATypeIndexTable() const { return LSDATypeIndexTable; }
14411439

14421440
const LabelsMapType &getLabels() const { return Labels; }
14431441

0 commit comments

Comments
 (0)