From 0479aa5c0b38c0ba1f77ecc164167ae7f9a92925 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 13 May 2008 02:05:11 +0000 Subject: Change class' public PassInfo variables to by initialized with the address of the PassInfo directly instead of calling getPassInfo. This eliminates a bunch of dynamic initializations of static data. Also, fold RegisterPassBase into PassInfo, make a bunch of its data members const, and rearrange some code to initialize data members in constructors instead of using setter member functions. llvm-svn: 51022 --- llvm/lib/CodeGen/MachineLoopInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/MachineLoopInfo.cpp') diff --git a/llvm/lib/CodeGen/MachineLoopInfo.cpp b/llvm/lib/CodeGen/MachineLoopInfo.cpp index ac3df435008..68ddb7b3f47 100644 --- a/llvm/lib/CodeGen/MachineLoopInfo.cpp +++ b/llvm/lib/CodeGen/MachineLoopInfo.cpp @@ -26,7 +26,7 @@ char MachineLoopInfo::ID = 0; static RegisterPass X("machine-loops", "Machine Natural Loop Construction", true); -const PassInfo *llvm::MachineLoopInfoID = X.getPassInfo(); +const PassInfo *const llvm::MachineLoopInfoID = &X; bool MachineLoopInfo::runOnMachineFunction(MachineFunction &) { releaseMemory(); -- cgit v1.2.3