[llvm-branch-commits] [llvm] 04af1ca - [llvm-mca] Forgot a couple of override specifiers.
Wolfgang Pieb via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Jan 21 15:54:54 PST 2021
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.
More information about the llvm-branch-commits
mailing list