summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-12-29 07:43:03 +0000
committerCraig Topper <craig.topper@gmail.com>2015-12-29 07:43:03 +0000
commit3661c62e4b53fc0efd383631daa27923c669e6f4 (patch)
treeee31e8a270a42068d1d47a94a6827f65ecfae50e
parent54dd6837265d7e400eb1653bab8ca70577bb92b9 (diff)
downloadbcm5719-llvm-3661c62e4b53fc0efd383631daa27923c669e6f4.tar.gz
bcm5719-llvm-3661c62e4b53fc0efd383631daa27923c669e6f4.zip
De-virtualize mnemonicIsValid and remove from the base class. It's not called by any common code.
llvm-svn: 256544
-rw-r--r--llvm/include/llvm/MC/MCTargetAsmParser.h4
-rw-r--r--llvm/utils/TableGen/AsmMatcherEmitter.cpp2
2 files changed, 1 insertions, 5 deletions
diff --git a/llvm/include/llvm/MC/MCTargetAsmParser.h b/llvm/include/llvm/MC/MCTargetAsmParser.h
index f8bf4d09f5a..03b2dc9a282 100644
--- a/llvm/include/llvm/MC/MCTargetAsmParser.h
+++ b/llvm/include/llvm/MC/MCTargetAsmParser.h
@@ -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.
diff --git a/llvm/utils/TableGen/AsmMatcherEmitter.cpp b/llvm/utils/TableGen/AsmMatcherEmitter.cpp
index 988e671fae7..1ac2c3035c0 100644
--- a/llvm/utils/TableGen/AsmMatcherEmitter.cpp
+++ b/llvm/utils/TableGen/AsmMatcherEmitter.cpp
@@ -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,"
OpenPOWER on IntegriCloud