diff --git a/compiler-rt/lib/tsan/rtl/tsan_ignoreset.h b/compiler-rt/lib/tsan/rtl/tsan_ignoreset.h --- a/compiler-rt/lib/tsan/rtl/tsan_ignoreset.h +++ b/compiler-rt/lib/tsan/rtl/tsan_ignoreset.h @@ -19,15 +19,14 @@ class IgnoreSet { public: - static const uptr kMaxSize = 16; - IgnoreSet(); void Add(StackID stack_id); - void Reset(); - uptr Size() const; + void Reset() { size_ = 0; } + uptr Size() const { return size_; } StackID At(uptr i) const; private: + static constexpr uptr kMaxSize = 16; uptr size_; StackID stacks_[kMaxSize]; }; diff --git a/compiler-rt/lib/tsan/rtl/tsan_ignoreset.cpp b/compiler-rt/lib/tsan/rtl/tsan_ignoreset.cpp --- a/compiler-rt/lib/tsan/rtl/tsan_ignoreset.cpp +++ b/compiler-rt/lib/tsan/rtl/tsan_ignoreset.cpp @@ -29,14 +29,6 @@ stacks_[size_++] = stack_id; } -void IgnoreSet::Reset() { - size_ = 0; -} - -uptr IgnoreSet::Size() const { - return size_; -} - StackID IgnoreSet::At(uptr i) const { CHECK_LT(i, size_); CHECK_LE(size_, kMaxSize);