OSDN Git Service

Change class' public PassInfo variables to by initialized with the
authorDan Gohman <gohman@apple.com>
Tue, 13 May 2008 02:05:11 +0000 (02:05 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 13 May 2008 02:05:11 +0000 (02:05 +0000)
commit6ddba2b933645d308428201e942abe1274fa5085
tree02c986fdfaf2f67a232f705d77841290240c2f0b
parenta72acf938902ea8ae2776cad7327257e88a63a54
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51022 91177308-0d34-0410-b5e6-96231b3b80d8
19 files changed:
include/llvm/CodeGen/Passes.h
include/llvm/PassSupport.h
include/llvm/Transforms/Scalar.h
lib/CodeGen/MachineDominators.cpp
lib/CodeGen/MachineLoopInfo.cpp
lib/CodeGen/PHIElimination.cpp
lib/CodeGen/SimpleRegisterCoalescing.cpp
lib/CodeGen/StrongPHIElimination.cpp
lib/CodeGen/TwoAddressInstructionPass.cpp
lib/Transforms/Scalar/Reg2Mem.cpp
lib/Transforms/Utils/BreakCriticalEdges.cpp
lib/Transforms/Utils/LCSSA.cpp
lib/Transforms/Utils/LoopSimplify.cpp
lib/Transforms/Utils/LowerAllocations.cpp
lib/Transforms/Utils/LowerInvoke.cpp
lib/Transforms/Utils/LowerSwitch.cpp
lib/Transforms/Utils/Mem2Reg.cpp
lib/VMCore/Pass.cpp
lib/VMCore/Verifier.cpp