aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvm-prof/llvm-prof.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-11 05:56:07 +0000
committerChris Lattner <sabre@nondot.org>2004-02-11 05:56:07 +0000
commit89cf3939b7a3e144020ae3651909cea61504ea42 (patch)
treeb12973123a251702752b28f37e89c7d59aa30c09 /tools/llvm-prof/llvm-prof.cpp
parentaf862116df18dedd6b6e775191db72a60d98595b (diff)
downloadexternal_llvm-89cf3939b7a3e144020ae3651909cea61504ea42.zip
external_llvm-89cf3939b7a3e144020ae3651909cea61504ea42.tar.gz
external_llvm-89cf3939b7a3e144020ae3651909cea61504ea42.tar.bz2
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.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/llvm-prof/llvm-prof.cpp b/tools/llvm-prof/llvm-prof.cpp
index 438fecf..3c9c390 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;