[compiler-rt] 5c3568d - [NFC][sanitizer] Add const into method
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 30 17:16:43 PDT 2021
Author: Vitaly Buka
Date: 2021-09-30T17:16:34-07:00
New Revision: 5c3568d01faac3202db5d7db4735f524f9cabf7e
URL: https://github.com/llvm/llvm-project/commit/5c3568d01faac3202db5d7db4735f524f9cabf7e
DIFF: https://github.com/llvm/llvm-project/commit/5c3568d01faac3202db5d7db4735f524f9cabf7e.diff
LOG: [NFC][sanitizer] Add const into method
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cpp
compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cpp
index e47127e04a7a1..9215867edd65c 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cpp
@@ -139,7 +139,7 @@ StackDepotReverseMap::StackDepotReverseMap() {
Sort(map_.data(), map_.size(), &IdDescPair::IdComparator);
}
-StackTrace StackDepotReverseMap::Get(u32 id) {
+StackTrace StackDepotReverseMap::Get(u32 id) const {
if (!map_.size())
return StackTrace();
IdDescPair pair = {id, nullptr};
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.h b/compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.h
index 937c1a446b1ea..d4c2ee3583511 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.h
@@ -50,7 +50,7 @@ void StackDepotPrintAll();
class StackDepotReverseMap {
public:
StackDepotReverseMap();
- StackTrace Get(u32 id);
+ StackTrace Get(u32 id) const;
private:
struct IdDescPair {
More information about the llvm-commits
mailing list