1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Use the standard INITIALIZE_PASS macro rather than hand rolling a (not

entirely correct) version of its contents.

llvm-svn: 271649
This commit is contained in:
Chandler Carruth 2016-06-03 10:13:29 +00:00
parent e6f779476e
commit 79352a662a

View File

@ -239,15 +239,8 @@ bool HexagonCFGOptimizer::runOnMachineFunction(MachineFunction &Fn) {
// Public Constructor Functions // Public Constructor Functions
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
static void initializePassOnce(PassRegistry &Registry) { INITIALIZE_PASS(HexagonCFGOptimizer, "hexagon-cfg", "Hexagon CFG Optimizer",
PassInfo *PI = new PassInfo("Hexagon CFG Optimizer", "hexagon-cfg", false, false)
&HexagonCFGOptimizer::ID, nullptr, false, false);
Registry.registerPass(*PI, true);
}
void llvm::initializeHexagonCFGOptimizerPass(PassRegistry &Registry) {
CALL_ONCE_INITIALIZATION(initializePassOnce)
}
FunctionPass *llvm::createHexagonCFGOptimizer() { FunctionPass *llvm::createHexagonCFGOptimizer() {
return new HexagonCFGOptimizer(); return new HexagonCFGOptimizer();