aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ProfileData/InstrProfTest.cpp
diff options
context:
space:
mode:
authorLogan Smith <logan.r.smith0@gmail.com>2020-07-16 20:36:46 -0700
committerLogan Smith <logan.r.smith0@gmail.com>2020-07-17 17:35:59 -0700
commit31eb83496fb4e41e322e19f162aeae885ed91301 (patch)
tree7555381c94c972c3e0822ab7c747cb6185166ec8 /llvm/unittests/ProfileData/InstrProfTest.cpp
parent1bbed69059d5ac35c0775e8ed598a34628d8ba6d (diff)
downloadllvm-31eb83496fb4e41e322e19f162aeae885ed91301.zip
llvm-31eb83496fb4e41e322e19f162aeae885ed91301.tar.gz
llvm-31eb83496fb4e41e322e19f162aeae885ed91301.tar.bz2
[llvm][NFC] Add missing 'override's in unittests/
Diffstat (limited to 'llvm/unittests/ProfileData/InstrProfTest.cpp')
-rw-r--r--llvm/unittests/ProfileData/InstrProfTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/unittests/ProfileData/InstrProfTest.cpp b/llvm/unittests/ProfileData/InstrProfTest.cpp
index 3e862aa..d949069 100644
--- a/llvm/unittests/ProfileData/InstrProfTest.cpp
+++ b/llvm/unittests/ProfileData/InstrProfTest.cpp
@@ -39,7 +39,7 @@ struct InstrProfTest : ::testing::Test {
InstrProfWriter Writer;
std::unique_ptr<IndexedInstrProfReader> Reader;
- void SetUp() { Writer.setOutputSparse(false); }
+ void SetUp() override { Writer.setOutputSparse(false); }
void readProfile(std::unique_ptr<MemoryBuffer> Profile,
std::unique_ptr<MemoryBuffer> Remapping = nullptr) {
@@ -51,12 +51,12 @@ struct InstrProfTest : ::testing::Test {
};
struct SparseInstrProfTest : public InstrProfTest {
- void SetUp() { Writer.setOutputSparse(true); }
+ void SetUp() override { Writer.setOutputSparse(true); }
};
struct MaybeSparseInstrProfTest : public InstrProfTest,
public ::testing::WithParamInterface<bool> {
- void SetUp() { Writer.setOutputSparse(GetParam()); }
+ void SetUp() override { Writer.setOutputSparse(GetParam()); }
};
TEST_P(MaybeSparseInstrProfTest, write_and_read_empty_profile) {