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/MachineDominators.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/MachineDominators.cpp') diff --git a/llvm/lib/CodeGen/MachineDominators.cpp b/llvm/lib/CodeGen/MachineDominators.cpp index 0710c10d967..8f679936209 100644 --- a/llvm/lib/CodeGen/MachineDominators.cpp +++ b/llvm/lib/CodeGen/MachineDominators.cpp @@ -25,4 +25,4 @@ char MachineDominatorTree::ID = 0; static RegisterPass E("machinedomtree", "MachineDominator Tree Construction", true); -const PassInfo *llvm::MachineDominatorsID = E.getPassInfo(); +const PassInfo *const llvm::MachineDominatorsID = &E; -- cgit v1.2.3