summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit1dec4a1eda6e94d79eb520d57fcd196143b12a43 (patch)
tree4b5757dfbc261349adb858fe85175307bcbc66c8 /llvm/tools/llvm-prof/llvm-prof.cpp
parentfcb99fe370e3904b58d2638a6b0c193d4704a7f0 (diff)
downloadbcm5719-llvm-1dec4a1eda6e94d79eb520d57fcd196143b12a43.tar.gz
bcm5719-llvm-1dec4a1eda6e94d79eb520d57fcd196143b12a43.zip
Factor profile information loading OUT of llvm-prof into libanalysis
llvm-svn: 11316
Diffstat (limited to 'llvm/tools/llvm-prof/llvm-prof.cpp')
-rw-r--r--llvm/tools/llvm-prof/llvm-prof.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/tools/llvm-prof/llvm-prof.cpp b/llvm/tools/llvm-prof/llvm-prof.cpp
index 438fecf07a4..3c9c3906ff3 100644
--- a/llvm/tools/llvm-prof/llvm-prof.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud