diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2009-08-29 00:44:16 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2009-08-29 00:44:16 +0000 |
commit | 9e955171cade55e8396fe95b2dfa6a6271097ec0 (patch) | |
tree | 841d7a1fe8b6170c78c919556b5aafee51a34acf /llvm/lib/ExecutionEngine | |
parent | 7cb103dc8b17649fb2ae5bc9aae199774e56d0a3 (diff) | |
download | bcm5719-llvm-9e955171cade55e8396fe95b2dfa6a6271097ec0.tar.gz bcm5719-llvm-9e955171cade55e8396fe95b2dfa6a6271097ec0.zip |
Fix OProfile support after r80406 changed the DebugInfo interface from
GlobalVariables to MDNodes.
llvm-svn: 80411
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r-- | llvm/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp b/llvm/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp index beea80c889e..740dcfc6264 100644 --- a/llvm/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp +++ b/llvm/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); } |