expose this pass to both opt and analyze
authorChris Lattner <sabre@nondot.org>
Fri, 18 Mar 2005 05:27:57 +0000 (05:27 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 18 Mar 2005 05:27:57 +0000 (05:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20672 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ProfileInfoLoaderPass.cpp

index b76c34a8bb833770753d2ee5c0e5ffd48a719e92..bb4cbbee3dec9cd2fd15b54a2c95f05745661263 100644 (file)
@@ -49,8 +49,9 @@ namespace {
     virtual bool runOnModule(Module &M);
   };
  
-  RegisterOpt<LoaderPass>
-  X("profile-loader", "Load profile information from llvmprof.out");
+  RegisterPass<LoaderPass>
+  X("profile-loader", "Load profile information from llvmprof.out",
+    PassInfo::Analysis|PassInfo::Optimization);
 
   RegisterAnalysisGroup<ProfileInfo, LoaderPass> Y;
 }  // End of anonymous namespace