[llvm] 6834e6d - [memprof] Remove redundant virtual (NFC) (#94858)

via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 8 08:38:39 PDT 2024


Author: Kazu Hirata
Date: 2024-06-08T08:38:36-07:00
New Revision: 6834e6ddd07a0a23b71dc4f1c1fdc3e9d35ceb41

URL: https://github.com/llvm/llvm-project/commit/6834e6ddd07a0a23b71dc4f1c1fdc3e9d35ceb41
DIFF: https://github.com/llvm/llvm-project/commit/6834e6ddd07a0a23b71dc4f1c1fdc3e9d35ceb41.diff

LOG: [memprof] Remove redundant virtual (NFC) (#94858)

'override' makes 'virtual' redundant.

Identified with modernize-use-override.

Added: 
    

Modified: 
    llvm/include/llvm/ProfileData/MemProfReader.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ProfileData/MemProfReader.h b/llvm/include/llvm/ProfileData/MemProfReader.h
index f0286820fa462..fbba6483abe3e 100644
--- a/llvm/include/llvm/ProfileData/MemProfReader.h
+++ b/llvm/include/llvm/ProfileData/MemProfReader.h
@@ -137,7 +137,7 @@ class RawMemProfReader final : public MemProfReader {
 public:
   RawMemProfReader(const RawMemProfReader &) = delete;
   RawMemProfReader &operator=(const RawMemProfReader &) = delete;
-  virtual ~RawMemProfReader() override = default;
+  ~RawMemProfReader() override = default;
 
   // Prints the contents of the profile in YAML format.
   void printYAML(raw_ostream &OS);
@@ -161,7 +161,7 @@ class RawMemProfReader final : public MemProfReader {
   // Returns a list of build ids recorded in the segment information.
   static std::vector<std::string> peekBuildIds(MemoryBuffer *DataBuffer);
 
-  virtual Error
+  Error
   readNextRecord(GuidMemProfRecordPair &GuidRecord,
                  std::function<const Frame(const FrameId)> Callback) override;
 


        


More information about the llvm-commits mailing list