diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-11 05:56:07 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-11 05:56:07 +0000 |
commit | 89cf3939b7a3e144020ae3651909cea61504ea42 (patch) | |
tree | b12973123a251702752b28f37e89c7d59aa30c09 /tools/llvm-prof/llvm-prof.cpp | |
parent | af862116df18dedd6b6e775191db72a60d98595b (diff) |
Factor profile information loading OUT of llvm-prof into libanalysis
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11316 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-prof/llvm-prof.cpp')
-rw-r--r-- | tools/llvm-prof/llvm-prof.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/llvm-prof/llvm-prof.cpp b/tools/llvm-prof/llvm-prof.cpp index 438fecf07a..3c9c3906ff 100644 --- a/tools/llvm-prof/llvm-prof.cpp +++ b/tools/llvm-prof/llvm-prof.cpp @@ -13,12 +13,11 @@ // //===----------------------------------------------------------------------===// -#include "ProfileInfo.h" #include "llvm/Module.h" #include "llvm/Assembly/AsmAnnotationWriter.h" +#include "llvm/Analysis/ProfileInfoLoader.h" #include "llvm/Bytecode/Reader.h" #include "Support/CommandLine.h" -#include <iostream> #include <cstdio> #include <map> #include <set> @@ -92,7 +91,7 @@ int main(int argc, char **argv) { } // Read the profiling information - ProfileInfo PI(argv[0], ProfileDataFile, *M); + ProfileInfoLoader PI(argv[0], ProfileDataFile, *M); std::map<const Function *, unsigned> FuncFreqs; std::map<const BasicBlock*, unsigned> BlockFreqs; |