summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit97c9f20c52a3b9ec01a3646a15f909798acf5192 (patch)
treee28ebdb00e956d1219b01e56235d15db25e47a8f /llvm/lib/Analysis/ProfileInfo.cpp
parent80f843d31d6bf058c69f2f369b3cbf1b38fa1ca4 (diff)
downloadbcm5719-llvm-97c9f20c52a3b9ec01a3646a15f909798acf5192.tar.gz
bcm5719-llvm-97c9f20c52a3b9ec01a3646a15f909798acf5192.zip
simplify AnalysisGroup registration, eliminating one typeid call.
llvm-svn: 29932
Diffstat (limited to 'llvm/lib/Analysis/ProfileInfo.cpp')
-rw-r--r--llvm/lib/Analysis/ProfileInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ProfileInfo.cpp b/llvm/lib/Analysis/ProfileInfo.cpp
index b8ab88b8f2e..c35d00ca059 100644
--- a/llvm/lib/Analysis/ProfileInfo.cpp
+++ b/llvm/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(); }
OpenPOWER on IntegriCloud