mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-03 19:02:35 +00:00
De-virtualize mnemonicIsValid and remove from the base class. It's not called by any common code.
llvm-svn: 256544
This commit is contained in:
parent
886aa9ef46
commit
098dcff300
@ -171,10 +171,6 @@ public:
|
||||
/// \param DirectiveID - the identifier token of the directive.
|
||||
virtual bool ParseDirective(AsmToken DirectiveID) = 0;
|
||||
|
||||
/// mnemonicIsValid - This returns true if this is a valid mnemonic and false
|
||||
/// otherwise.
|
||||
virtual bool mnemonicIsValid(StringRef Mnemonic, unsigned VariantID) = 0;
|
||||
|
||||
/// MatchAndEmitInstruction - Recognize a series of operands of a parsed
|
||||
/// instruction as an actual MCInst and emit it to the specified MCStreamer.
|
||||
/// This returns false on success and returns true on failure to match.
|
||||
|
@ -2700,7 +2700,7 @@ void AsmMatcherEmitter::run(raw_ostream &OS) {
|
||||
<< "&Operands);\n";
|
||||
OS << " void convertToMapAndConstraints(unsigned Kind,\n ";
|
||||
OS << " const OperandVector &Operands) override;\n";
|
||||
OS << " bool mnemonicIsValid(StringRef Mnemonic, unsigned VariantID) override;\n";
|
||||
OS << " bool mnemonicIsValid(StringRef Mnemonic, unsigned VariantID);\n";
|
||||
OS << " unsigned MatchInstructionImpl(const OperandVector &Operands,\n"
|
||||
<< " MCInst &Inst,\n"
|
||||
<< " uint64_t &ErrorInfo,"
|
||||
|
Loading…
x
Reference in New Issue
Block a user