[llvm-commits] CVS: llvm/tools/llvm-prof/Makefile llvm-prof.cpp ProfileInfo.cpp ProfileInfo.h

Chris Lattner lattner at cs.uiuc.edu
Tue Feb 10 23:57:02 PST 2004


Changes in directory llvm/tools/llvm-prof:

Makefile updated: 1.1 -> 1.2
llvm-prof.cpp updated: 1.16 -> 1.17
ProfileInfo.cpp (r1.6) removed
ProfileInfo.h (r1.5) removed

---
Log message:

Factor profile information loading OUT of llvm-prof into libanalysis


---
Diffs of the changes:  (+3 -4)

Index: llvm/tools/llvm-prof/Makefile
diff -u llvm/tools/llvm-prof/Makefile:1.1 llvm/tools/llvm-prof/Makefile:1.2
--- llvm/tools/llvm-prof/Makefile:1.1	Tue Oct 28 13:16:35 2003
+++ llvm/tools/llvm-prof/Makefile	Tue Feb 10 23:56:07 2004
@@ -9,5 +9,5 @@
 LEVEL = ../..
 
 TOOLNAME = llvm-prof
-USEDLIBS = bcreader vmcore support.a
+USEDLIBS = analysis.a bcreader vmcore support.a
 include $(LEVEL)/Makefile.common


Index: llvm/tools/llvm-prof/llvm-prof.cpp
diff -u llvm/tools/llvm-prof/llvm-prof.cpp:1.16 llvm/tools/llvm-prof/llvm-prof.cpp:1.17
--- llvm/tools/llvm-prof/llvm-prof.cpp:1.16	Tue Nov 11 16:41:34 2003
+++ llvm/tools/llvm-prof/llvm-prof.cpp	Tue Feb 10 23:56:07 2004
@@ -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 @@
   }
 
   // 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;





More information about the llvm-commits mailing list