[llvm-commits] CVS: llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp EmitFunctions.cpp TraceValues.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Tue Nov 11 16:43:33 PST 2003
Changes in directory llvm/lib/Transforms/Instrumentation:
BlockProfiling.cpp updated: 1.3 -> 1.4
EmitFunctions.cpp updated: 1.13 -> 1.14
TraceValues.cpp updated: 1.64 -> 1.65
---
Log message:
Put all LLVM code into the llvm namespace, as per bug 109.
---
Diffs of the changes: (+12 -0)
Index: llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp
diff -u llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp:1.3 llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp:1.4
--- llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp:1.3 Wed Oct 29 15:24:22 2003
+++ llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp Tue Nov 11 16:41:33 2003
@@ -25,6 +25,8 @@
#include "llvm/Module.h"
#include "llvm/Pass.h"
+namespace llvm {
+
static void insertInitializationCall(Function *MainFn, const char *FnName,
GlobalValue *Array) {
const Type *ArgVTy = PointerType::get(PointerType::get(Type::SByteTy));
@@ -181,3 +183,5 @@
insertInitializationCall(Main, "llvm_start_block_profiling", Counters);
return true;
}
+
+} // End llvm namespace
Index: llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp
diff -u llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp:1.13 llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp:1.14
--- llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp:1.13 Mon Oct 20 14:43:19 2003
+++ llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp Tue Nov 11 16:41:33 2003
@@ -17,6 +17,8 @@
#include "llvm/Pass.h"
#include "llvm/Support/CFG.h"
+namespace llvm {
+
enum Color{
WHITE,
GREY,
@@ -104,3 +106,5 @@
M.getGlobalList().push_back(fnCount);
return true; // Always modifies program
}
+
+} // End llvm namespace
Index: llvm/lib/Transforms/Instrumentation/TraceValues.cpp
diff -u llvm/lib/Transforms/Instrumentation/TraceValues.cpp:1.64 llvm/lib/Transforms/Instrumentation/TraceValues.cpp:1.65
--- llvm/lib/Transforms/Instrumentation/TraceValues.cpp:1.64 Mon Oct 27 15:44:09 2003
+++ llvm/lib/Transforms/Instrumentation/TraceValues.cpp Tue Nov 11 16:41:33 2003
@@ -26,6 +26,8 @@
#include <algorithm>
#include <sstream>
+namespace llvm {
+
static cl::opt<bool>
DisablePtrHashing("tracedisablehashdisable", cl::Hidden,
cl::desc("Disable pointer hashing in the -trace or -tracem "
@@ -433,3 +435,5 @@
return true;
}
+
+} // End llvm namespace
More information about the llvm-commits
mailing list