mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-22 19:49:49 +00:00
Add ifdef around getSubtargetFeatureName in tablegen output file so that only targets that want the function get it. This prevents other targets from getting an unused function warning.
llvm-svn: 155538
This commit is contained in:
parent
1a016fd95d
commit
5828c654b9
@ -7595,5 +7595,6 @@ extern "C" void LLVMInitializeARMAsmParser() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define GET_REGISTER_MATCHER
|
#define GET_REGISTER_MATCHER
|
||||||
|
#define GET_SUBTARGET_FEATURE_NAME
|
||||||
#define GET_MATCHER_IMPLEMENTATION
|
#define GET_MATCHER_IMPLEMENTATION
|
||||||
#include "ARMGenAsmMatcher.inc"
|
#include "ARMGenAsmMatcher.inc"
|
||||||
|
@ -2395,13 +2395,17 @@ void AsmMatcherEmitter::run(raw_ostream &OS) {
|
|||||||
|
|
||||||
OS << "#endif // GET_REGISTER_MATCHER\n\n";
|
OS << "#endif // GET_REGISTER_MATCHER\n\n";
|
||||||
|
|
||||||
|
OS << "\n#ifdef GET_SUBTARGET_FEATURE_NAME\n";
|
||||||
OS << "\n#ifdef GET_MATCHER_IMPLEMENTATION\n";
|
OS << "#undef GET_SUBTARGET_FEATURE_NAME\n\n";
|
||||||
OS << "#undef GET_MATCHER_IMPLEMENTATION\n\n";
|
|
||||||
|
|
||||||
// Generate the helper function to get the names for subtarget features.
|
// Generate the helper function to get the names for subtarget features.
|
||||||
emitGetSubtargetFeatureName(Info, OS);
|
emitGetSubtargetFeatureName(Info, OS);
|
||||||
|
|
||||||
|
OS << "#endif // GET_SUBTARGET_FEATURE_NAME\n\n";
|
||||||
|
|
||||||
|
OS << "\n#ifdef GET_MATCHER_IMPLEMENTATION\n";
|
||||||
|
OS << "#undef GET_MATCHER_IMPLEMENTATION\n\n";
|
||||||
|
|
||||||
// Generate the function that remaps for mnemonic aliases.
|
// Generate the function that remaps for mnemonic aliases.
|
||||||
bool HasMnemonicAliases = emitMnemonicAliases(OS, Info);
|
bool HasMnemonicAliases = emitMnemonicAliases(OS, Info);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user