[llvm] r225258 - [PM] Hide a function we only use in an assert behind NDEBUG.
Chandler Carruth
chandlerc at gmail.com
Tue Jan 6 01:10:47 PST 2015
Author: chandlerc
Date: Tue Jan 6 03:10:47 2015
New Revision: 225258
URL: http://llvm.org/viewvc/llvm-project?rev=225258&view=rev
Log:
[PM] Hide a function we only use in an assert behind NDEBUG.
Modified:
llvm/trunk/tools/opt/Passes.cpp
Modified: llvm/trunk/tools/opt/Passes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/opt/Passes.cpp?rev=225258&r1=225257&r2=225258&view=diff
==============================================================================
--- llvm/trunk/tools/opt/Passes.cpp (original)
+++ llvm/trunk/tools/opt/Passes.cpp Tue Jan 6 03:10:47 2015
@@ -102,6 +102,7 @@ void llvm::registerFunctionAnalyses(Func
#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 N
return false;
}
+#endif
static bool isCGSCCPassName(StringRef Name) {
#define CGSCC_PASS(NAME, CREATE_PASS) if (Name == NAME) return true;
More information about the llvm-commits
mailing list