summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2009-10-22 20:57:35 +0000
committerJeffrey Yasskin <jyasskin@google.com>2009-10-22 20:57:35 +0000
commit86dfc11cdff8a309eeb3c1d6ac1bc135b0ec6193 (patch)
treec72137e3c8a45dc4529c41a4d5666655034a263a /llvm/lib/ExecutionEngine
parent4f0b8d78610e3d7efaf49af28cd4b1aed76df472 (diff)
downloadbcm5719-llvm-86dfc11cdff8a309eeb3c1d6ac1bc135b0ec6193.tar.gz
bcm5719-llvm-86dfc11cdff8a309eeb3c1d6ac1bc135b0ec6193.zip
Fix OProfileJITEventListener after r84054 renamed CompileUnit to Scope.
llvm-svn: 84895
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp b/llvm/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp
index 69398be5080..00c4af7ac26 100644
--- a/llvm/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp
+++ b/llvm/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp
@@ -69,16 +69,16 @@ OProfileJITEventListener::~OProfileJITEventListener() {
}
class FilenameCache {
- // Holds the filename of each CompileUnit, so that we can pass the
+ // Holds the filename of each Scope, so that we can pass the
// pointer into oprofile. These char*s are freed in the destructor.
DenseMap<MDNode*, char*> Filenames;
public:
- const char *getFilename(MDNode *CompileUnit) {
- char *&Filename = Filenames[CompileUnit];
+ const char *getFilename(MDNode *Scope) {
+ char *&Filename = Filenames[Scope];
if (Filename == NULL) {
- DICompileUnit CU(CompileUnit);
- Filename = strdup(CU.getFilename());
+ DIScope S(Scope);
+ Filename = strdup(S.getFilename());
}
return Filename;
}
@@ -97,7 +97,7 @@ static debug_line_info LineStartToOProfileFormat(
Result.vma = Address;
const DebugLocTuple &tuple = MF.getDebugLocTuple(Loc);
Result.lineno = tuple.Line;
- Result.filename = Filenames.getFilename(tuple.CompileUnit);
+ Result.filename = Filenames.getFilename(tuple.Scope);
DEBUG(errs() << "Mapping " << reinterpret_cast<void*>(Result.vma) << " to "
<< Result.filename << ":" << Result.lineno << "\n");
return Result;
OpenPOWER on IntegriCloud