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/LoopSimplify.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/LoopSimplify.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopSimplify.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopSimplify.cpp b/llvm/lib/Transforms/Utils/LoopSimplify.cpp index 9351837..308819e 100644 --- a/llvm/lib/Transforms/Utils/LoopSimplify.cpp +++ b/llvm/lib/Transforms/Utils/LoopSimplify.cpp @@ -102,7 +102,7 @@ static RegisterPass<LoopSimplify> X("loopsimplify", "Canonicalize natural loops", true); // Publically exposed interface to pass... -const PassInfo *llvm::LoopSimplifyID = X.getPassInfo(); +const PassInfo *const llvm::LoopSimplifyID = &X; FunctionPass *llvm::createLoopSimplifyPass() { return new LoopSimplify(); } /// runOnFunction - Run down all loops in the CFG (recursively, but we could do |