forked from OSchip/llvm-project
[llvm-mca] Forgot a couple of override specifiers.
Differential Revision: https://reviews.llvm.org/D86644
This commit is contained in:
parent
b7ab6726b6
commit
04af1ca2e9
|
@ -34,16 +34,19 @@ class InstructionView : public View {
|
||||||
mutable raw_string_ostream InstrStream;
|
mutable raw_string_ostream InstrStream;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void printView(llvm::raw_ostream &) const {}
|
void printView(llvm::raw_ostream &) const override {}
|
||||||
InstructionView(const llvm::MCSubtargetInfo &STI,
|
InstructionView(const llvm::MCSubtargetInfo &STI,
|
||||||
llvm::MCInstPrinter &Printer,
|
llvm::MCInstPrinter &Printer,
|
||||||
llvm::ArrayRef<llvm::MCInst> S,
|
llvm::ArrayRef<llvm::MCInst> S,
|
||||||
StringRef MCPU = StringRef())
|
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;
|
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.
|
// Return a reference to a string representing a given machine instruction.
|
||||||
// The result should be used or copied before the next call to
|
// The result should be used or copied before the next call to
|
||||||
// printInstructionString() as it will overwrite the previous result.
|
// printInstructionString() as it will overwrite the previous result.
|
||||||
|
|
Loading…
Reference in New Issue