Fix PR885
authorChris Lattner <sabre@nondot.org>
Mon, 21 Aug 2006 17:20:01 +0000 (17:20 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 21 Aug 2006 17:20:01 +0000 (17:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29794 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ProfileInfoLoaderPass.cpp
lib/VMCore/AsmWriter.cpp

index 8f8333eef91574fa00f5ed1bfb6f1328cb8b7fca..354c871ff208891dbc84a710bb7abd034b2c6fb5 100644 (file)
@@ -49,9 +49,8 @@ namespace {
     virtual bool runOnModule(Module &M);
   };
 
-  RegisterPass<LoaderPass>
-  X("profile-loader", "Load profile information from llvmprof.out",
-    PassInfo::Analysis|PassInfo::Optimization);
+  RegisterOpt<LoaderPass>
+  X("profile-loader", "Load profile information from llvmprof.out");
 
   RegisterAnalysisGroup<ProfileInfo, LoaderPass> Y;
 }  // End of anonymous namespace
index 7464c23b7d5835a4c91781628ae2ec04415f10ca..5553e2409ea4b8811c018a5c8b0aed551e58649e 100644 (file)
@@ -162,10 +162,10 @@ public:
 
 }  // end namespace llvm
 
-static RegisterPass<PrintModulePass>
-X("printm", "Print module to stderr",PassInfo::Analysis|PassInfo::Optimization);
-static RegisterPass<PrintFunctionPass>
-Y("print","Print function to stderr",PassInfo::Analysis|PassInfo::Optimization);
+static RegisterOpt<PrintModulePass>
+X("printm", "Print module to stderr");
+static RegisterOpt<PrintFunctionPass>
+Y("print","Print function to stderr");
 
 static void WriteAsOperandInternal(std::ostream &Out, const Value *V,
                                    bool PrintName,