[llvm] [llvm-mca] Drop const from a return type (NFC) (PR #140836)
via llvm-commits
llvm-commits at lists.llvm.org
Tue May 20 19:54:09 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-tools-llvm-mca
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/140836.diff
2 Files Affected:
- (modified) llvm/tools/llvm-mca/CodeRegion.cpp (+1-1)
- (modified) llvm/tools/llvm-mca/CodeRegion.h (+1-1)
``````````diff
diff --git a/llvm/tools/llvm-mca/CodeRegion.cpp b/llvm/tools/llvm-mca/CodeRegion.cpp
index eacbc062cb113..9b8f62f242da1 100644
--- a/llvm/tools/llvm-mca/CodeRegion.cpp
+++ b/llvm/tools/llvm-mca/CodeRegion.cpp
@@ -158,7 +158,7 @@ void InstrumentRegions::endRegion(StringRef Description, SMLoc Loc) {
}
}
-const SmallVector<Instrument *>
+SmallVector<Instrument *>
InstrumentRegions::getActiveInstruments(SMLoc Loc) const {
SmallVector<Instrument *> AI;
for (auto &R : Regions) {
diff --git a/llvm/tools/llvm-mca/CodeRegion.h b/llvm/tools/llvm-mca/CodeRegion.h
index ef8804f1b494c..c04ea51169cfb 100644
--- a/llvm/tools/llvm-mca/CodeRegion.h
+++ b/llvm/tools/llvm-mca/CodeRegion.h
@@ -210,7 +210,7 @@ struct InstrumentRegions : public CodeRegions {
UniqueInstrument Instrument) override;
void endRegion(llvm::StringRef Description, llvm::SMLoc Loc) override;
- const SmallVector<Instrument *> getActiveInstruments(llvm::SMLoc Loc) const;
+ SmallVector<Instrument *> getActiveInstruments(llvm::SMLoc Loc) const;
};
} // namespace mca
``````````
</details>
https://github.com/llvm/llvm-project/pull/140836
More information about the llvm-commits
mailing list