diff options
author | Dan Gohman <gohman@apple.com> | 2008-05-13 02:05:11 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-05-13 02:05:11 +0000 |
commit | 66a636e07c90c7270b673406f2bac1bfea81ea8b (patch) | |
tree | 02c986fdfaf2f67a232f705d77841290240c2f0b /lib/CodeGen/PHIElimination.cpp | |
parent | 285e2e4b303a2bd5d48eb4c27bf9405b17c129a4 (diff) | |
download | external_llvm-66a636e07c90c7270b673406f2bac1bfea81ea8b.zip external_llvm-66a636e07c90c7270b673406f2bac1bfea81ea8b.tar.gz external_llvm-66a636e07c90c7270b673406f2bac1bfea81ea8b.tar.bz2 |
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
Diffstat (limited to 'lib/CodeGen/PHIElimination.cpp')
-rw-r--r-- | lib/CodeGen/PHIElimination.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/PHIElimination.cpp b/lib/CodeGen/PHIElimination.cpp index 4a9077a..4e2ed67 100644 --- a/lib/CodeGen/PHIElimination.cpp +++ b/lib/CodeGen/PHIElimination.cpp @@ -79,7 +79,7 @@ char PNE::ID = 0; static RegisterPass<PNE> X("phi-node-elimination", "Eliminate PHI nodes for register allocation"); -const PassInfo *llvm::PHIEliminationID = X.getPassInfo(); +const PassInfo *const llvm::PHIEliminationID = &X; bool PNE::runOnMachineFunction(MachineFunction &Fn) { MRI = &Fn.getRegInfo(); |