Author: Wolfgang Pieb Date: 2021-01-21T15:44:14-08:00 New Revision: 04af1ca2e908016563eada7a60f69f572d5629da
URL: https://github.com/llvm/llvm-project/commit/04af1ca2e908016563eada7a60f69f572d5629da DIFF: https://github.com/llvm/llvm-project/commit/04af1ca2e908016563eada7a60f69f572d5629da.diff LOG: [llvm-mca] Forgot a couple of override specifiers. Differential Revision: https://reviews.llvm.org/D86644 Added: Modified: llvm/tools/llvm-mca/Views/InstructionView.h Removed: ################################################################################ diff --git a/llvm/tools/llvm-mca/Views/InstructionView.h b/llvm/tools/llvm-mca/Views/InstructionView.h index 3f967471fabe..2a260b97d8fb 100644 --- a/llvm/tools/llvm-mca/Views/InstructionView.h +++ b/llvm/tools/llvm-mca/Views/InstructionView.h @@ -34,16 +34,19 @@ class InstructionView : public View { mutable raw_string_ostream InstrStream; public: - void printView(llvm::raw_ostream &) const {} + void printView(llvm::raw_ostream &) const override {} InstructionView(const llvm::MCSubtargetInfo &STI, llvm::MCInstPrinter &Printer, llvm::ArrayRef<llvm::MCInst> S, StringRef MCPU = StringRef()) - : STI(STI), MCIP(Printer), Source(S), MCPU(MCPU), InstrStream(InstructionString) {} + : STI(STI), MCIP(Printer), Source(S), MCPU(MCPU), + InstrStream(InstructionString) {} virtual ~InstructionView() = default; - StringRef getNameAsString() const { return "Instructions and CPU resources"; } + StringRef getNameAsString() const override { + return "Instructions and CPU resources"; + } // Return a reference to a string representing a given machine instruction. // The result should be used or copied before the next call to // printInstructionString() as it will overwrite the previous result. _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits