Skip to content

Commit 04af1ca

Browse files
author
Wolfgang Pieb
committed
[llvm-mca] Forgot a couple of override specifiers.
Differential Revision: https://reviews.llvm.org/D86644
1 parent b7ab672 commit 04af1ca

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

llvm/tools/llvm-mca/Views/InstructionView.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,19 @@ class InstructionView : public View {
3434
mutable raw_string_ostream InstrStream;
3535

3636
public:
37-
void printView(llvm::raw_ostream &) const {}
37+
void printView(llvm::raw_ostream &) const override {}
3838
InstructionView(const llvm::MCSubtargetInfo &STI,
3939
llvm::MCInstPrinter &Printer,
4040
llvm::ArrayRef<llvm::MCInst> S,
4141
StringRef MCPU = StringRef())
42-
: STI(STI), MCIP(Printer), Source(S), MCPU(MCPU), InstrStream(InstructionString) {}
42+
: STI(STI), MCIP(Printer), Source(S), MCPU(MCPU),
43+
InstrStream(InstructionString) {}
4344

4445
virtual ~InstructionView() = default;
4546

46-
StringRef getNameAsString() const { return "Instructions and CPU resources"; }
47+
StringRef getNameAsString() const override {
48+
return "Instructions and CPU resources";
49+
}
4750
// Return a reference to a string representing a given machine instruction.
4851
// The result should be used or copied before the next call to
4952
// printInstructionString() as it will overwrite the previous result.

0 commit comments

Comments
 (0)