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 | 0479aa5c0b38c0ba1f77ecc164167ae7f9a92925 (patch) | |
| tree | 46303f09156df9cad0ea7fa21037fd7d6d90c725 /llvm/lib/Transforms/Utils/LCSSA.cpp | |
| parent | 53c5c62d6d144ef7c51414d7357579a9e7d43384 (diff) | |
| download | llvm-0479aa5c0b38c0ba1f77ecc164167ae7f9a92925.zip llvm-0479aa5c0b38c0ba1f77ecc164167ae7f9a92925.tar.gz llvm-0479aa5c0b38c0ba1f77ecc164167ae7f9a92925.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.
llvm-svn: 51022
Diffstat (limited to 'llvm/lib/Transforms/Utils/LCSSA.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Utils/LCSSA.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LCSSA.cpp b/llvm/lib/Transforms/Utils/LCSSA.cpp index ff5f863..a98733b 100644 --- a/llvm/lib/Transforms/Utils/LCSSA.cpp +++ b/llvm/lib/Transforms/Utils/LCSSA.cpp @@ -100,7 +100,7 @@ char LCSSA::ID = 0; static RegisterPass<LCSSA> X("lcssa", "Loop-Closed SSA Form Pass"); LoopPass *llvm::createLCSSAPass() { return new LCSSA(); } -const PassInfo *llvm::LCSSAID = X.getPassInfo(); +const PassInfo *const llvm::LCSSAID = &X; /// runOnFunction - Process all loops in the function, inner-most out. bool LCSSA::runOnLoop(Loop *L, LPPassManager &LPM) { |
