From: Chandler Carruth Date: Tue, 6 Jan 2015 09:10:47 +0000 (+0000) Subject: [PM] Hide a function we only use in an assert behind NDEBUG. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=147ebc77ff05a7a71b80c599fea3a77250f5846a;p=oota-llvm.git [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 --- diff --git a/tools/opt/Passes.cpp b/tools/opt/Passes.cpp index 0eb383ba405..bc17e1d35b5 100644 --- a/tools/opt/Passes.cpp +++ b/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;