aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-08-07 00:16:11 -0700
committerKazu Hirata <kazu@google.com>2022-08-07 00:16:11 -0700
commit3b114087c34bc1428b157eff8ca8599f7d2380f9 (patch)
tree7e35b2ce304df39ae7645241eb47cade53438e78
parentaa4977f2e1354bb5e1937235dd12199839ab0801 (diff)
[llvm] Drop unnecessary const from return types (NFC)
Identified with readability-const-return-type.
-rw-r--r--llvm/include/llvm/Analysis/LoopAccessAnalysis.h2
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h4
2 files changed, 2 insertions, 4 deletions
diff --git a/llvm/include/llvm/Analysis/LoopAccessAnalysis.h b/llvm/include/llvm/Analysis/LoopAccessAnalysis.h
index 8f71ce9e96c0..5a01a8e4b055 100644
--- a/llvm/include/llvm/Analysis/LoopAccessAnalysis.h
+++ b/llvm/include/llvm/Analysis/LoopAccessAnalysis.h
@@ -624,7 +624,7 @@ public:
}
/// Return the list of stores to invariant addresses.
- const ArrayRef<StoreInst *> getStoresToInvariantAddresses() const {
+ ArrayRef<StoreInst *> getStoresToInvariantAddresses() const {
return StoresToInvariantAddresses;
}
diff --git a/llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h b/llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h
index f6c1f0eb2194..34065c63c5c6 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h
+++ b/llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h
@@ -151,9 +151,7 @@ public:
bool isEntryVal() const { return getExpression()->isEntryValue(); }
bool isVariadic() const { return IsVariadic; }
const DIExpression *getExpression() const { return Expression; }
- const ArrayRef<DbgValueLocEntry> getLocEntries() const {
- return ValueLocEntries;
- }
+ ArrayRef<DbgValueLocEntry> getLocEntries() const { return ValueLocEntries; }
friend bool operator==(const DbgValueLoc &, const DbgValueLoc &);
friend bool operator<(const DbgValueLoc &, const DbgValueLoc &);
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)