Skip to content

Commit 6834e6d

Browse files
[memprof] Remove redundant virtual (NFC) (#94858)
'override' makes 'virtual' redundant. Identified with modernize-use-override.
1 parent 38124fe commit 6834e6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/ProfileData/MemProfReader.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class RawMemProfReader final : public MemProfReader {
137137
public:
138138
RawMemProfReader(const RawMemProfReader &) = delete;
139139
RawMemProfReader &operator=(const RawMemProfReader &) = delete;
140-
virtual ~RawMemProfReader() override = default;
140+
~RawMemProfReader() override = default;
141141

142142
// Prints the contents of the profile in YAML format.
143143
void printYAML(raw_ostream &OS);
@@ -161,7 +161,7 @@ class RawMemProfReader final : public MemProfReader {
161161
// Returns a list of build ids recorded in the segment information.
162162
static std::vector<std::string> peekBuildIds(MemoryBuffer *DataBuffer);
163163

164-
virtual Error
164+
Error
165165
readNextRecord(GuidMemProfRecordPair &GuidRecord,
166166
std::function<const Frame(const FrameId)> Callback) override;
167167

0 commit comments

Comments
 (0)