diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-26 09:48:23 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-26 09:48:23 +0000 |
commit | 460f656475738d1a95a6be95346908ce1597df25 (patch) | |
tree | 7a7ec0dc5ad33115b17ffed8902bf8cb7e5ab289 /lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp | |
parent | 4fa4990bdcb1fc2aa7831b1e6b113998366b2918 (diff) |
Remove Value::getName{Start,End}, the last of the old Name APIs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77152 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp')
-rw-r--r-- | lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp b/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp index 888d83e0f2..71502e927c 100644 --- a/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp +++ b/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp @@ -107,13 +107,13 @@ static debug_line_info LineStartToOProfileFormat( void OProfileJITEventListener::NotifyFunctionEmitted( const Function &F, void *FnStart, size_t FnSize, const EmittedFunctionDetails &Details) { - const char *const FnName = F.getNameStart(); - assert(FnName != 0 && FnStart != 0 && "Bad symbol to add"); - if (op_write_native_code(Agent, FnName, + assert(F.hasName() && FnStart != 0 && "Bad symbol to add"); + if (op_write_native_code(Agent, F.getName().data(), reinterpret_cast<uint64_t>(FnStart), FnStart, FnSize) == -1) { - DOUT << "Failed to tell OProfile about native function " << FnName - << " at [" << FnStart << "-" << ((char*)FnStart + FnSize) << "]\n"; + DEBUG(errs() << "Failed to tell OProfile about native function " + << Fn.getName() << " at [" + << FnStart << "-" << ((char*)FnStart + FnSize) << "]\n"); return; } @@ -139,9 +139,10 @@ void OProfileJITEventListener::NotifyFunctionEmitted( if (!LineInfo.empty()) { if (op_write_debug_line_info(Agent, FnStart, LineInfo.size(), &*LineInfo.begin()) == -1) { - DOUT << "Failed to tell OProfile about line numbers for native function " - << FnName << " at [" << FnStart << "-" << ((char*)FnStart + FnSize) - << "]\n"; + DEBUG(errs() + << "Failed to tell OProfile about line numbers for native function " + << F.getName() << " at [" + << FnStart << "-" << ((char*)FnStart + FnSize) << "]\n"); } } } |