summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2012-04-25 06:56:34 +0000
committerCraig Topper <craig.topper@gmail.com>2012-04-25 06:56:34 +0000
commit3ec7c2aa84ad1f927ab65372c03a3e57256ed354 (patch)
treefe45507b7265667afb5663e22fba6e84fe4213fd /llvm/lib
parent5ff6dc34b9a03c6c5f1ee773edd4ca0da59263fd (diff)
downloadbcm5719-llvm-3ec7c2aa84ad1f927ab65372c03a3e57256ed354.tar.gz
bcm5719-llvm-3ec7c2aa84ad1f927ab65372c03a3e57256ed354.zip
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
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index cbd9bdb77ca..3fe681f4520 100644
--- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -7595,5 +7595,6 @@ extern "C" void LLVMInitializeARMAsmParser() {
}
#define GET_REGISTER_MATCHER
+#define GET_SUBTARGET_FEATURE_NAME
#define GET_MATCHER_IMPLEMENTATION
#include "ARMGenAsmMatcher.inc"
OpenPOWER on IntegriCloud