summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SystemZ
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-10-26 06:46:40 +0000
committerCraig Topper <craig.topper@intel.com>2017-10-26 06:46:40 +0000
commit2a06028c0a407c7dd2134060993770f50e299401 (patch)
tree3298fc9c56f3840ebb82d21104dfe4ff5ec0ac3c /llvm/lib/Target/SystemZ
parent619b15283d1337b1599e9c611e7dc892c3d2577d (diff)
downloadbcm5719-llvm-2a06028c0a407c7dd2134060993770f50e299401.tar.gz
bcm5719-llvm-2a06028c0a407c7dd2134060993770f50e299401.zip
[AsmParser][TableGen] Make the generated mnemonic spell checker function a file local static function.
Also only emit in targets that specificially request it. This is required so we don't get an unused static function error. llvm-svn: 316640
Diffstat (limited to 'llvm/lib/Target/SystemZ')
-rw-r--r--llvm/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp3
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 1cc01af509c..cfbff85f482 100644
--- a/llvm/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp
+++ b/llvm/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp
@@ -543,6 +543,7 @@ public:
#define GET_REGISTER_MATCHER
#define GET_SUBTARGET_FEATURE_NAME
#define GET_MATCHER_IMPLEMENTATION
+#define GET_MNEMONIC_SPELL_CHECKER
#include "SystemZGenAsmMatcher.inc"
// Used for the .insn directives; contains information needed to parse the
@@ -1168,7 +1169,7 @@ bool SystemZAsmParser::parseOperand(OperandVector &Operands,
return false;
}
-std::string SystemZMnemonicSpellCheck(StringRef S, uint64_t FBS);
+static std::string SystemZMnemonicSpellCheck(StringRef S, uint64_t FBS);
bool SystemZAsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
OperandVector &Operands,
OpenPOWER on IntegriCloud