mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
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
This commit is contained in:
@@ -147,7 +147,7 @@ static RegisterPass<StrongPHIElimination>
|
||||
X("strong-phi-node-elimination",
|
||||
"Eliminate PHI nodes for register allocation, intelligently");
|
||||
|
||||
const PassInfo *llvm::StrongPHIEliminationID = X.getPassInfo();
|
||||
const PassInfo *const llvm::StrongPHIEliminationID = &X;
|
||||
|
||||
/// computeDFS - Computes the DFS-in and DFS-out numbers of the dominator tree
|
||||
/// of the given MachineFunction. These numbers are then used in other parts
|
||||
|
Reference in New Issue
Block a user