[llvm-commits] CVS: llvm/tools/llvm-prof/ProfileInfo.cpp ProfileInfo.h llvm-prof.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Tue Nov 11 16:43:20 PST 2003
Changes in directory llvm/tools/llvm-prof:
ProfileInfo.cpp updated: 1.4 -> 1.5
ProfileInfo.h updated: 1.4 -> 1.5
llvm-prof.cpp updated: 1.15 -> 1.16
---
Log message:
Put all LLVM code into the llvm namespace, as per bug 109.
---
Diffs of the changes: (+9 -0)
Index: llvm/tools/llvm-prof/ProfileInfo.cpp
diff -u llvm/tools/llvm-prof/ProfileInfo.cpp:1.4 llvm/tools/llvm-prof/ProfileInfo.cpp:1.5
--- llvm/tools/llvm-prof/ProfileInfo.cpp:1.4 Wed Oct 29 15:47:44 2003
+++ llvm/tools/llvm-prof/ProfileInfo.cpp Tue Nov 11 16:41:34 2003
@@ -20,6 +20,8 @@
#include <fcntl.h>
#include <stdio.h>
+using namespace llvm;
+
enum ProfilingType {
ArgumentInfo = 1, // The command line argument block
FunctionInfo = 2, // Function profiling information
Index: llvm/tools/llvm-prof/ProfileInfo.h
diff -u llvm/tools/llvm-prof/ProfileInfo.h:1.4 llvm/tools/llvm-prof/ProfileInfo.h:1.5
--- llvm/tools/llvm-prof/ProfileInfo.h:1.4 Tue Oct 28 16:30:37 2003
+++ llvm/tools/llvm-prof/ProfileInfo.h Tue Nov 11 16:41:34 2003
@@ -18,6 +18,9 @@
#include <vector>
#include <string>
#include <utility>
+
+namespace llvm {
+
class Module;
class Function;
class BasicBlock;
@@ -54,5 +57,7 @@
//
void getBlockCounts(std::vector<std::pair<BasicBlock*, unsigned> > &Counts);
};
+
+} // End llvm namespace
#endif
Index: llvm/tools/llvm-prof/llvm-prof.cpp
diff -u llvm/tools/llvm-prof/llvm-prof.cpp:1.15 llvm/tools/llvm-prof/llvm-prof.cpp:1.16
--- llvm/tools/llvm-prof/llvm-prof.cpp:1.15 Thu Nov 6 14:29:25 2003
+++ llvm/tools/llvm-prof/llvm-prof.cpp Tue Nov 11 16:41:34 2003
@@ -23,6 +23,8 @@
#include <map>
#include <set>
+using namespace llvm;
+
namespace {
cl::opt<std::string>
BytecodeFile(cl::Positional, cl::desc("<program bytecode file>"),
More information about the llvm-commits
mailing list