[llvm] a4782ff - [llvm-mca] Drop const from a return type (NFC) (#140836)
via llvm-commits
llvm-commits at lists.llvm.org
Tue May 20 21:38:37 PDT 2025
Author: Kazu Hirata
Date: 2025-05-20T21:38:34-07:00
New Revision: a4782ff903267a053885f999e499cce6023bf239
URL: https://github.com/llvm/llvm-project/commit/a4782ff903267a053885f999e499cce6023bf239
DIFF: https://github.com/llvm/llvm-project/commit/a4782ff903267a053885f999e499cce6023bf239.diff
LOG: [llvm-mca] Drop const from a return type (NFC) (#140836)
Added:
Modified:
llvm/tools/llvm-mca/CodeRegion.cpp
llvm/tools/llvm-mca/CodeRegion.h
Removed:
################################################################################
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
More information about the llvm-commits
mailing list