simplify AnalysisGroup registration, eliminating one typeid call.
[oota-llvm.git] / lib / Analysis / ProfileInfoLoaderPass.cpp
index 57e3627c53c024ade504bbb57b8247d88943a71f..b5cb95433fcdc432530cbb9d4f6a1b0dba19a602 100644 (file)
@@ -52,7 +52,7 @@ namespace {
   RegisterPass<LoaderPass>
   X("profile-loader", "Load profile information from llvmprof.out");
 
-  RegisterAnalysisGroup<ProfileInfo, LoaderPass> Y;
+  RegisterAnalysisGroup<ProfileInfo> Y(X);
 }  // End of anonymous namespace
 
 ModulePass *llvm::createProfileLoaderPass() { return new LoaderPass(); }