llvm.org GIT mirror llvm / 147ebc7
[PM] Hide a function we only use in an assert behind NDEBUG. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225258 91177308-0d34-0410-b5e6-96231b3b80d8 Chandler Carruth 4 years ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
101101 #include "PassRegistry.def"
102102 }
103103
104 #ifndef NDEBUG
104105 static bool isModulePassName(StringRef Name) {
105106 #define MODULE_PASS(NAME, CREATE_PASS) if (Name == NAME) return true;
106107 #define MODULE_ANALYSIS(NAME, CREATE_PASS) \
110111
111112 return false;
112113 }
114 #endif
113115
114116 static bool isCGSCCPassName(StringRef Name) {
115117 #define CGSCC_PASS(NAME, CREATE_PASS) if (Name == NAME) return true;