diff options
author | Wolfgang Pieb <wolfgang_pieb@playstation.sony.com> | 2021-01-21 17:30:59 -0800 |
---|---|---|
committer | Wolfgang Pieb <wolfgang_pieb@playstation.sony.com> | 2021-01-21 17:32:18 -0800 |
commit | c6e8f81410a2942b5abd112aa6e468268e01d946 (patch) | |
tree | 07fa806ffffad674479fd6d042c19898bf36f193 /llvm/tools/llvm-mca/Views | |
parent | 3b5430eb0dad5b239d0671503f73f6b713aaaf40 (diff) | |
download | llvm-c6e8f81410a2942b5abd112aa6e468268e01d946.zip llvm-c6e8f81410a2942b5abd112aa6e468268e01d946.tar.gz llvm-c6e8f81410a2942b5abd112aa6e468268e01d946.tar.bz2 |
[llvm-mca] Addressing build failures due to missing override specifiers
Diffstat (limited to 'llvm/tools/llvm-mca/Views')
-rw-r--r-- | llvm/tools/llvm-mca/Views/InstructionInfoView.cpp | 2 | ||||
-rw-r--r-- | llvm/tools/llvm-mca/Views/InstructionInfoView.h | 2 | ||||
-rw-r--r-- | llvm/tools/llvm-mca/Views/ResourcePressureView.h | 2 | ||||
-rw-r--r-- | llvm/tools/llvm-mca/Views/TimelineView.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/llvm/tools/llvm-mca/Views/InstructionInfoView.cpp b/llvm/tools/llvm-mca/Views/InstructionInfoView.cpp index bff5729b..2248f63 100644 --- a/llvm/tools/llvm-mca/Views/InstructionInfoView.cpp +++ b/llvm/tools/llvm-mca/Views/InstructionInfoView.cpp @@ -141,7 +141,7 @@ json::Value InstructionInfoView::toJSON() const { collectData(IIVD); json::Array InstInfo; - for (const auto I : enumerate(IIVD)) { + for (const auto &I : enumerate(IIVD)) { const InstructionInfoViewData &IIVDEntry = I.value(); json::Object JO = toJSON(IIVDEntry); JO.try_emplace("Instruction", (unsigned)I.index()); diff --git a/llvm/tools/llvm-mca/Views/InstructionInfoView.h b/llvm/tools/llvm-mca/Views/InstructionInfoView.h index 82b2d67..5d52164 100644 --- a/llvm/tools/llvm-mca/Views/InstructionInfoView.h +++ b/llvm/tools/llvm-mca/Views/InstructionInfoView.h @@ -78,7 +78,7 @@ public: void printView(llvm::raw_ostream &OS) const override; StringRef getNameAsString() const override { return "InstructionInfoView"; } - json::Value toJSON() const; + json::Value toJSON() const override; json::Object toJSON(const InstructionInfoViewData &IIVD) const; }; } // namespace mca diff --git a/llvm/tools/llvm-mca/Views/ResourcePressureView.h b/llvm/tools/llvm-mca/Views/ResourcePressureView.h index 5a9b5ca..c3993a0 100644 --- a/llvm/tools/llvm-mca/Views/ResourcePressureView.h +++ b/llvm/tools/llvm-mca/Views/ResourcePressureView.h @@ -95,7 +95,7 @@ public: printResourcePressurePerInst(OS); } StringRef getNameAsString() const override { return "ResourcePressureView"; } - json::Value toJSON() const; + json::Value toJSON() const override; }; } // namespace mca } // namespace llvm diff --git a/llvm/tools/llvm-mca/Views/TimelineView.h b/llvm/tools/llvm-mca/Views/TimelineView.h index a9e94d7..81f2b03 100644 --- a/llvm/tools/llvm-mca/Views/TimelineView.h +++ b/llvm/tools/llvm-mca/Views/TimelineView.h @@ -180,7 +180,7 @@ public: printAverageWaitTimes(OS); } StringRef getNameAsString() const override { return "TimelineView"; } - json::Value toJSON() const; + json::Value toJSON() const override; }; } // namespace mca } // namespace llvm |