[llvm-mca] Forgot a couple of override specifiers.

Differential Revision: https://reviews.llvm.org/D86644
This commit is contained in:
Wolfgang Pieb 2021-01-21 15:44:14 -08:00
parent b7ab6726b6
commit 04af1ca2e9
1 changed files with 6 additions and 3 deletions

View File

@ -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.