[llvm-commits] CVS: llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp EdgeProfiling.cpp TraceBasicBlocks.cpp
Bill Wendling
isanbard at gmail.com
Wed Dec 6 17:32:03 PST 2006
Changes in directory llvm/lib/Transforms/Instrumentation:
BlockProfiling.cpp updated: 1.17 -> 1.18
EdgeProfiling.cpp updated: 1.8 -> 1.9
TraceBasicBlocks.cpp updated: 1.18 -> 1.19
---
Log message:
Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are
now cerr, cout, and NullStream resp.
---
Diffs of the changes: (+10 -10)
BlockProfiling.cpp | 8 ++++----
EdgeProfiling.cpp | 6 +++---
TraceBasicBlocks.cpp | 6 +++---
3 files changed, 10 insertions(+), 10 deletions(-)
Index: llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp
diff -u llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp:1.17 llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp:1.18
--- llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp:1.17 Sun Nov 26 03:17:06 2006
+++ llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp Wed Dec 6 19:30:31 2006
@@ -47,8 +47,8 @@
bool FunctionProfiler::runOnModule(Module &M) {
Function *Main = M.getMainFunction();
if (Main == 0) {
- llvm_cerr << "WARNING: cannot insert function profiling into a module"
- << " with no main function!\n";
+ cerr << "WARNING: cannot insert function profiling into a module"
+ << " with no main function!\n";
return false; // No main, no instrumentation!
}
@@ -90,8 +90,8 @@
bool BlockProfiler::runOnModule(Module &M) {
Function *Main = M.getMainFunction();
if (Main == 0) {
- llvm_cerr << "WARNING: cannot insert block profiling into a module"
- << " with no main function!\n";
+ cerr << "WARNING: cannot insert block profiling into a module"
+ << " with no main function!\n";
return false; // No main, no instrumentation!
}
Index: llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp
diff -u llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp:1.8 llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp:1.9
--- llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp:1.8 Sun Nov 26 03:17:06 2006
+++ llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp Wed Dec 6 19:30:31 2006
@@ -17,6 +17,7 @@
//
//===----------------------------------------------------------------------===//
+#include "ProfilingUtils.h"
#include "llvm/Constants.h"
#include "llvm/DerivedTypes.h"
#include "llvm/Module.h"
@@ -24,7 +25,6 @@
#include "llvm/Support/Streams.h"
#include "llvm/Transforms/Utils/BasicBlockUtils.h"
#include "llvm/Transforms/Instrumentation.h"
-#include "ProfilingUtils.h"
#include <set>
using namespace llvm;
@@ -42,8 +42,8 @@
bool EdgeProfiler::runOnModule(Module &M) {
Function *Main = M.getMainFunction();
if (Main == 0) {
- llvm_cerr << "WARNING: cannot insert edge profiling into a module"
- << " with no main function!\n";
+ cerr << "WARNING: cannot insert edge profiling into a module"
+ << " with no main function!\n";
return false; // No main, no instrumentation!
}
Index: llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp
diff -u llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp:1.18 llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp:1.19
--- llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp:1.18 Sun Nov 26 03:17:06 2006
+++ llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp Wed Dec 6 19:30:31 2006
@@ -13,6 +13,7 @@
//
//===----------------------------------------------------------------------===//
+#include "ProfilingUtils.h"
#include "llvm/Constants.h"
#include "llvm/DerivedTypes.h"
#include "llvm/Module.h"
@@ -20,7 +21,6 @@
#include "llvm/Transforms/Utils/BasicBlockUtils.h"
#include "llvm/Transforms/Instrumentation.h"
#include "llvm/Instructions.h"
-#include "ProfilingUtils.h"
#include "llvm/Support/Debug.h"
#include <set>
using namespace llvm;
@@ -61,8 +61,8 @@
bool TraceBasicBlocks::runOnModule(Module &M) {
Function *Main = M.getMainFunction();
if (Main == 0) {
- llvm_cerr << "WARNING: cannot insert basic-block trace instrumentation"
- << " into a module with no main function!\n";
+ cerr << "WARNING: cannot insert basic-block trace instrumentation"
+ << " into a module with no main function!\n";
return false; // No main, no instrumentation!
}
More information about the llvm-commits
mailing list