[llvm] r277562 - [PM] Remove the NDEBUG condition around isModulePassName.
Chandler Carruth via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 2 20:26:09 PDT 2016
Author: chandlerc
Date: Tue Aug 2 22:26:09 2016
New Revision: 277562
URL: http://llvm.org/viewvc/llvm-project?rev=277562&view=rev
Log:
[PM] Remove the NDEBUG condition around isModulePassName.
I forgot to do this initially, and added when I saw this fail in
a no-asserts build, but managed to loose the diff from the actual patch
that got submitted. Very sorry.
Modified:
llvm/trunk/lib/Passes/PassBuilder.cpp
Modified: llvm/trunk/lib/Passes/PassBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Passes/PassBuilder.cpp?rev=277562&r1=277561&r2=277562&view=diff
==============================================================================
--- llvm/trunk/lib/Passes/PassBuilder.cpp (original)
+++ llvm/trunk/lib/Passes/PassBuilder.cpp Tue Aug 2 22:26:09 2016
@@ -274,7 +274,6 @@ void PassBuilder::addLTODefaultPipeline(
MPM.addPass(createModuleToFunctionPassAdaptor(std::move(LateFPM)));
}
-#ifndef NDEBUG
static bool isModulePassName(StringRef Name) {
// Manually handle aliases for pre-configured pipeline fragments.
if (Name.startswith("default") || Name.startswith("lto"))
@@ -298,7 +297,6 @@ static bool isModulePassName(StringRef N
return false;
}
-#endif
static bool isCGSCCPassName(StringRef Name) {
// Explicitly handle pass manager names.
More information about the llvm-commits
mailing list