diff options
author | Chris Lattner <sabre@nondot.org> | 2006-08-21 17:20:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-08-21 17:20:01 +0000 |
commit | 3dd965c954a49c12fc63888372ae6e35d56f6db9 (patch) | |
tree | 04d6d549356b8c8df8797f0d393cec586acd7876 | |
parent | a5dfc835d4acf4316364ecc2b0c9cbaf13d08020 (diff) |
Fix PR885
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29794 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Analysis/ProfileInfoLoaderPass.cpp | 5 | ||||
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 8 |
2 files changed, 6 insertions, 7 deletions
diff --git a/lib/Analysis/ProfileInfoLoaderPass.cpp b/lib/Analysis/ProfileInfoLoaderPass.cpp index 8f8333eef9..354c871ff2 100644 --- a/lib/Analysis/ProfileInfoLoaderPass.cpp +++ b/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/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 7464c23b7d..5553e2409e 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/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, |