diff options
author | Craig Topper <craig.topper@intel.com> | 2017-10-26 06:46:41 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2017-10-26 06:46:41 +0000 |
commit | 0551556ed2cbf35d4db2b424ad013dcf29570b5c (patch) | |
tree | 8ca6bbac3303c58d88ea99e10d7eddaffc120814 /llvm/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp | |
parent | 2a06028c0a407c7dd2134060993770f50e299401 (diff) | |
download | bcm5719-llvm-0551556ed2cbf35d4db2b424ad013dcf29570b5c.tar.gz bcm5719-llvm-0551556ed2cbf35d4db2b424ad013dcf29570b5c.zip |
[AsmParser][TableGen] Add VariantID argument to the generated mnemonic spell check function so it can use the correct table based on variant.
I'm considering implementing the mnemonic spell checker for x86, and that would require the separate intel and att variants.
llvm-svn: 316641
Diffstat (limited to 'llvm/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp')
-rw-r--r-- | llvm/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp b/llvm/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp index cfbff85f482..bde067d6c12 100644 --- a/llvm/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp +++ b/llvm/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp @@ -1169,7 +1169,8 @@ bool SystemZAsmParser::parseOperand(OperandVector &Operands, return false; } -static std::string SystemZMnemonicSpellCheck(StringRef S, uint64_t FBS); +static std::string SystemZMnemonicSpellCheck(StringRef S, uint64_t FBS, + unsigned VariantID = 0); bool SystemZAsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode, OperandVector &Operands, |