aboutsummaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2009-08-29 00:44:16 +0000
committerJeffrey Yasskin <jyasskin@google.com>2009-08-29 00:44:16 +0000
commit91dc33ae8fb6919df6edd8ec9d7f2b9f76c4b246 (patch)
treeb3e7b4f4f52bda7f04616041156d0c5ff3ca7535 /lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp
parent7886cd85b21db4498ff042a4e42aded7bf3272ee (diff)
Fix OProfile support after r80406 changed the DebugInfo interface from
GlobalVariables to MDNodes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80411 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp')
-rw-r--r--lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp b/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp
index beea80c889..740dcfc626 100644
--- a/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp
+++ b/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp
@@ -71,12 +71,12 @@ OProfileJITEventListener::~OProfileJITEventListener() {
class FilenameCache {
// Holds the filename of each CompileUnit, so that we can pass the
// pointer into oprofile. These char*s are freed in the destructor.
- DenseMap<GlobalVariable*, char*> Filenames;
+ DenseMap<MDNode*, char*> Filenames;
// Used as the scratch space in DICompileUnit::getFilename().
std::string TempFilename;
public:
- const char* getFilename(GlobalVariable *CompileUnit) {
+ const char* getFilename(MDNode *CompileUnit) {
char *&Filename = Filenames[CompileUnit];
if (Filename == NULL) {
DICompileUnit CU(CompileUnit);
@@ -85,7 +85,7 @@ class FilenameCache {
return Filename;
}
~FilenameCache() {
- for (DenseMap<GlobalVariable*, char*>::iterator
+ for (DenseMap<MDNode*, char*>::iterator
I = Filenames.begin(), E = Filenames.end(); I != E;++I) {
free(I->second);
}