aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-03-18 05:27:57 +0000
committerChris Lattner <sabre@nondot.org>2005-03-18 05:27:57 +0000
commite29503a8055e03ba0aa5ef2422b449deb96d86bb (patch)
treebe5dd5c662f3ec3568f65864bec2f86f53f876af /llvm/lib/Analysis
parentf12594d56fd3b392f09586d7bcfbdf2fba2d7ce2 (diff)
downloadllvm-e29503a8055e03ba0aa5ef2422b449deb96d86bb.zip
llvm-e29503a8055e03ba0aa5ef2422b449deb96d86bb.tar.gz
llvm-e29503a8055e03ba0aa5ef2422b449deb96d86bb.tar.bz2
expose this pass to both opt and analyze
llvm-svn: 20672
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/ProfileInfoLoaderPass.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ProfileInfoLoaderPass.cpp b/llvm/lib/Analysis/ProfileInfoLoaderPass.cpp
index b76c34a..bb4cbbee 100644
--- a/llvm/lib/Analysis/ProfileInfoLoaderPass.cpp
+++ b/llvm/lib/Analysis/ProfileInfoLoaderPass.cpp
@@ -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