[llvm] r271649 - Use the standard INITIALIZE_PASS macro rather than hand rolling a (not
Chandler Carruth via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 3 03:13:29 PDT 2016
Author: chandlerc
Date: Fri Jun 3 05:13:29 2016
New Revision: 271649
URL: http://llvm.org/viewvc/llvm-project?rev=271649&view=rev
Log:
Use the standard INITIALIZE_PASS macro rather than hand rolling a (not
entirely correct) version of its contents.
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonCFGOptimizer.cpp
Modified: llvm/trunk/lib/Target/Hexagon/HexagonCFGOptimizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonCFGOptimizer.cpp?rev=271649&r1=271648&r2=271649&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonCFGOptimizer.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonCFGOptimizer.cpp Fri Jun 3 05:13:29 2016
@@ -239,15 +239,8 @@ bool HexagonCFGOptimizer::runOnMachineFu
// Public Constructor Functions
//===----------------------------------------------------------------------===//
-static void initializePassOnce(PassRegistry &Registry) {
- PassInfo *PI = new PassInfo("Hexagon CFG Optimizer", "hexagon-cfg",
- &HexagonCFGOptimizer::ID, nullptr, false, false);
- Registry.registerPass(*PI, true);
-}
-
-void llvm::initializeHexagonCFGOptimizerPass(PassRegistry &Registry) {
- CALL_ONCE_INITIALIZATION(initializePassOnce)
-}
+INITIALIZE_PASS(HexagonCFGOptimizer, "hexagon-cfg", "Hexagon CFG Optimizer",
+ false, false)
FunctionPass *llvm::createHexagonCFGOptimizer() {
return new HexagonCFGOptimizer();
More information about the llvm-commits
mailing list