summaryrefslogtreecommitdiffstats
path: root/llvm/tools/opt/Passes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/opt/Passes.cpp')
-rw-r--r--llvm/tools/opt/Passes.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/opt/Passes.cpp b/llvm/tools/opt/Passes.cpp
index 0eb383ba405..bc17e1d35b5 100644
--- a/llvm/tools/opt/Passes.cpp
+++ b/llvm/tools/opt/Passes.cpp
@@ -102,6 +102,7 @@ void llvm::registerFunctionAnalyses(FunctionAnalysisManager &FAM) {
#include "PassRegistry.def"
}
+#ifndef NDEBUG
static bool isModulePassName(StringRef Name) {
#define MODULE_PASS(NAME, CREATE_PASS) if (Name == NAME) return true;
#define MODULE_ANALYSIS(NAME, CREATE_PASS) \
@@ -111,6 +112,7 @@ static bool isModulePassName(StringRef Name) {
return false;
}
+#endif
static bool isCGSCCPassName(StringRef Name) {
#define CGSCC_PASS(NAME, CREATE_PASS) if (Name == NAME) return true;
OpenPOWER on IntegriCloud