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 | 6ddba2b933645d308428201e942abe1274fa5085 (patch) | |
tree | 02c986fdfaf2f67a232f705d77841290240c2f0b /lib/VMCore/Verifier.cpp | |
parent | a72acf938902ea8ae2776cad7327257e88a63a54 (diff) | |
download | external_llvm-6ddba2b933645d308428201e942abe1274fa5085.tar.gz external_llvm-6ddba2b933645d308428201e942abe1274fa5085.tar.bz2 external_llvm-6ddba2b933645d308428201e942abe1274fa5085.zip |
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/VMCore/Verifier.cpp')
-rw-r--r-- | lib/VMCore/Verifier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 4c6f9e00f7..86aff9bdad 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -97,7 +97,7 @@ namespace { // Anonymous namespace for class char PreVerifier::ID = 0; static RegisterPass<PreVerifier> PreVer("preverify", "Preliminary module verification"); -static const PassInfo *PreVerifyID = PreVer.getPassInfo(); +static const PassInfo *PreVerifyID = &PreVer; namespace { struct VISIBILITY_HIDDEN |