summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-26 09:48:23 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-26 09:48:23 +0000
commit6115b39ffdabcf375210bf4d32cbeadaedc0dbf4 (patch)
treef385c9166334a31e004dff92387af0e0723737c0 /llvm/lib/ExecutionEngine
parente59313a298b979a759de61dba53f523a341c74f5 (diff)
downloadbcm5719-llvm-6115b39ffdabcf375210bf4d32cbeadaedc0dbf4.tar.gz
bcm5719-llvm-6115b39ffdabcf375210bf4d32cbeadaedc0dbf4.zip
Remove Value::getName{Start,End}, the last of the old Name APIs.
llvm-svn: 77152
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/JIT/MacOSJITEventListener.cpp5
-rw-r--r--llvm/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp17
2 files changed, 11 insertions, 11 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/MacOSJITEventListener.cpp b/llvm/lib/ExecutionEngine/JIT/MacOSJITEventListener.cpp
index 3b8b84ce5bc..53585b877b1 100644
--- a/llvm/lib/ExecutionEngine/JIT/MacOSJITEventListener.cpp
+++ b/llvm/lib/ExecutionEngine/JIT/MacOSJITEventListener.cpp
@@ -84,8 +84,7 @@ JITEventListener *createMacOSJITEventListener() {
void MacOSJITEventListener::NotifyFunctionEmitted(
const Function &F, void *FnStart, size_t FnSize,
const EmittedFunctionDetails &) {
- const char *const FnName = F.getNameStart();
- assert(FnName != 0 && FnStart != 0 && "Bad symbol to add");
+ assert(F.hasName() && FnStart != 0 && "Bad symbol to add");
JITSymbolTable **SymTabPtrPtr = 0;
SymTabPtrPtr = &__jitSymbolTable;
@@ -120,7 +119,7 @@ void MacOSJITEventListener::NotifyFunctionEmitted(
// Otherwise, we have enough space, just tack it onto the end of the array.
JITSymbolEntry &Entry = SymTabPtr->Symbols[SymTabPtr->NumSymbols];
- Entry.FnName = strdup(FnName);
+ Entry.FnName = strdup(F.getName().data());
Entry.FnStart = FnStart;
Entry.FnSize = FnSize;
++SymTabPtr->NumSymbols;
diff --git a/llvm/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp b/llvm/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp
index 888d83e0f29..71502e927cd 100644
--- a/llvm/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp
+++ b/llvm/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");
}
}
}
OpenPOWER on IntegriCloud