1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

[PM] Hide a function we only use in an assert behind NDEBUG.

llvm-svn: 225258
This commit is contained in:
Chandler Carruth 2015-01-06 09:10:47 +00:00
parent ec863a4374
commit 050d8321fe

View File

@ -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;