summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-08-02 20:51:44 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-08-02 20:51:44 +0000
commit133d9105d3da9ab4d9a1822019d5cf017a9778a6 (patch)
tree900de782643c2f981d32eac28eaf58ab57cc8371
parent381b89d3f1747179fedcf0551ed56f5836e36d09 (diff)
downloadbcm5719-llvm-133d9105d3da9ab4d9a1822019d5cf017a9778a6.tar.gz
bcm5719-llvm-133d9105d3da9ab4d9a1822019d5cf017a9778a6.zip
Fix the build for people with oprofile installed.
llvm-svn: 77914
-rw-r--r--llvm/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp b/llvm/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp
index 71502e927cd..9bc1765faa0 100644
--- a/llvm/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp
+++ b/llvm/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp
@@ -22,6 +22,7 @@
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/ExecutionEngine/JITEventListener.h"
#include "llvm/Support/Debug.h"
+#include "llvm/Support/raw_ostream.h"
#include "llvm/System/Errno.h"
#include "llvm/Config/config.h"
#include <stddef.h>
@@ -112,7 +113,7 @@ void OProfileJITEventListener::NotifyFunctionEmitted(
reinterpret_cast<uint64_t>(FnStart),
FnStart, FnSize) == -1) {
DEBUG(errs() << "Failed to tell OProfile about native function "
- << Fn.getName() << " at ["
+ << F.getName() << " at ["
<< FnStart << "-" << ((char*)FnStart + FnSize) << "]\n");
return;
}
@@ -152,8 +153,8 @@ void OProfileJITEventListener::NotifyFreeingMachineCode(
const Function &F, void *FnStart) {
assert(FnStart && "Invalid function pointer");
if (op_unload_native_code(Agent, reinterpret_cast<uint64_t>(FnStart)) == -1) {
- DOUT << "Failed to tell OProfile about unload of native function "
- << F.getName() << " at " << FnStart << "\n";
+ DEBUG(errs() << "Failed to tell OProfile about unload of native function "
+ << F.getName() << " at " << FnStart << "\n");
}
}
OpenPOWER on IntegriCloud