aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/ProfileInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-08-28 00:42:29 +0000
committerChris Lattner <sabre@nondot.org>2006-08-28 00:42:29 +0000
commita5370172b64bed5daf8e2869d7bf7cb52f80d6b7 (patch)
tree1af9676bf65c14df5ff1d8bb43c02ed29ba2f4d6 /lib/Analysis/ProfileInfo.cpp
parent84f82f7fac2735548eb6f800bd1fdeb4759f1c4b (diff)
simplify AnalysisGroup registration, eliminating one typeid call.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29932 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ProfileInfo.cpp')
-rw-r--r--lib/Analysis/ProfileInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/ProfileInfo.cpp b/lib/Analysis/ProfileInfo.cpp
index b8ab88b8f2..c35d00ca05 100644
--- a/lib/Analysis/ProfileInfo.cpp
+++ b/lib/Analysis/ProfileInfo.cpp
@@ -89,7 +89,7 @@ namespace {
X("no-profile", "No Profile Information");
// Declare that we implement the ProfileInfo interface
- RegisterAnalysisGroup<ProfileInfo, NoProfileInfo, true> Y;
+ RegisterAnalysisGroup<ProfileInfo, true> Y(X);
} // End of anonymous namespace
ImmutablePass *llvm::createNoProfileInfoPass() { return new NoProfileInfo(); }