diff options
| -rw-r--r-- | llvm/lib/Analysis/ProfileInfoLoaderPass.cpp | 5 | ||||
| -rw-r--r-- | llvm/lib/VMCore/AsmWriter.cpp | 8 |
2 files changed, 6 insertions, 7 deletions
diff --git a/llvm/lib/Analysis/ProfileInfoLoaderPass.cpp b/llvm/lib/Analysis/ProfileInfoLoaderPass.cpp index 8f8333eef91..354c871ff20 100644 --- a/llvm/lib/Analysis/ProfileInfoLoaderPass.cpp +++ b/llvm/lib/Analysis/ProfileInfoLoaderPass.cpp @@ -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 diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp index 7464c23b7d5..5553e2409ea 100644 --- a/llvm/lib/VMCore/AsmWriter.cpp +++ b/llvm/lib/VMCore/AsmWriter.cpp @@ -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, |

