summaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2010-01-05 01:23:34 +0000
committerDavid Greene <greened@obbligato.org>2010-01-05 01:23:34 +0000
commit4a54016b070830ef81a3b03d8a4a56eed55d0dd5 (patch)
tree8d433deca4e0c034eb6f2d65a9ff814009aab5f4 /lib/ExecutionEngine
parent44a29e066a24e88bdf127e88be4380a5f259c4b4 (diff)
downloadllvm-4a54016b070830ef81a3b03d8a4a56eed55d0dd5.tar.gz
llvm-4a54016b070830ef81a3b03d8a4a56eed55d0dd5.tar.bz2
llvm-4a54016b070830ef81a3b03d8a4a56eed55d0dd5.tar.xz
Change errs() to dbgs().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92560 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r--lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp b/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp
index 52a8f71ca3..d01c4b2db5 100644
--- a/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp
+++ b/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp
@@ -50,9 +50,9 @@ OProfileJITEventListener::OProfileJITEventListener()
: Agent(op_open_agent()) {
if (Agent == NULL) {
const std::string err_str = sys::StrError();
- DEBUG(errs() << "Failed to connect to OProfile agent: " << err_str << "\n");
+ DEBUG(dbgs() << "Failed to connect to OProfile agent: " << err_str << "\n");
} else {
- DEBUG(errs() << "Connected to OProfile agent.\n");
+ DEBUG(dbgs() << "Connected to OProfile agent.\n");
}
}
@@ -60,10 +60,10 @@ OProfileJITEventListener::~OProfileJITEventListener() {
if (Agent != NULL) {
if (op_close_agent(Agent) == -1) {
const std::string err_str = sys::StrError();
- DEBUG(errs() << "Failed to disconnect from OProfile agent: "
+ DEBUG(dbgs() << "Failed to disconnect from OProfile agent: "
<< err_str << "\n");
} else {
- DEBUG(errs() << "Disconnected from OProfile agent.\n");
+ DEBUG(dbgs() << "Disconnected from OProfile agent.\n");
}
}
}
@@ -92,7 +92,7 @@ static debug_line_info LineStartToOProfileFormat(
const DebugLocTuple &tuple = MF.getDebugLocTuple(Loc);
Result.lineno = tuple.Line;
Result.filename = Filenames.getFilename(tuple.Scope);
- DEBUG(errs() << "Mapping " << reinterpret_cast<void*>(Result.vma) << " to "
+ DEBUG(dbgs() << "Mapping " << reinterpret_cast<void*>(Result.vma) << " to "
<< Result.filename << ":" << Result.lineno << "\n");
return Result;
}
@@ -105,7 +105,7 @@ void OProfileJITEventListener::NotifyFunctionEmitted(
if (op_write_native_code(Agent, F.getName().data(),
reinterpret_cast<uint64_t>(FnStart),
FnStart, FnSize) == -1) {
- DEBUG(errs() << "Failed to tell OProfile about native function "
+ DEBUG(dbgs() << "Failed to tell OProfile about native function "
<< F.getName() << " at ["
<< FnStart << "-" << ((char*)FnStart + FnSize) << "]\n");
return;
@@ -133,7 +133,7 @@ void OProfileJITEventListener::NotifyFunctionEmitted(
if (!LineInfo.empty()) {
if (op_write_debug_line_info(Agent, FnStart,
LineInfo.size(), &*LineInfo.begin()) == -1) {
- DEBUG(errs()
+ DEBUG(dbgs()
<< "Failed to tell OProfile about line numbers for native function "
<< F.getName() << " at ["
<< FnStart << "-" << ((char*)FnStart + FnSize) << "]\n");
@@ -145,7 +145,7 @@ void OProfileJITEventListener::NotifyFunctionEmitted(
void OProfileJITEventListener::NotifyFreeingMachineCode(void *FnStart) {
assert(FnStart && "Invalid function pointer");
if (op_unload_native_code(Agent, reinterpret_cast<uint64_t>(FnStart)) == -1) {
- DEBUG(errs()
+ DEBUG(dbgs()
<< "Failed to tell OProfile about unload of native function at "
<< FnStart << "\n");
}