summaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/IntelJITEvents
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-04-23 17:37:47 +0000
committerZachary Turner <zturner@google.com>2015-04-23 17:37:47 +0000
commit45e7e93c6f04c9a59bafcbca3da0d6925fd7db71 (patch)
tree415e37407fce2677fee870720d19fc97bdc1ecf9 /lib/ExecutionEngine/IntelJITEvents
parent1aa9710c60c872690d0d77c9d451a0e82dd7baeb (diff)
Move DIContext.h to common DebugInfo location.
This will enable us to create a PDBContext so as to expose some amount of debug info functionality through a common interace. Differential Revision: http://reviews.llvm.org/D9205 Reviewed by: Alexey Samsonov git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235612 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/IntelJITEvents')
-rw-r--r--lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp b/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp
index 41359000fb0..ec67019947a 100644
--- a/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp
+++ b/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp
@@ -16,7 +16,8 @@
#include "IntelJITEventsWrapper.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/CodeGen/MachineFunction.h"
-#include "llvm/DebugInfo/DWARF/DIContext.h"
+#include "llvm/DebugInfo/DIContext.h"
+#include "llvm/DebugInfo/DWARF/DWARFContext.h"
#include "llvm/ExecutionEngine/JITEventListener.h"
#include "llvm/IR/DebugInfo.h"
#include "llvm/IR/Function.h"
@@ -102,7 +103,7 @@ void IntelJITEventListener::NotifyObjectEmitted(
// Get the address of the object image for use as a unique identifier
const void* ObjData = DebugObj.getData().data();
- DIContext* Context = DIContext::getDWARFContext(DebugObj);
+ DIContext* Context = new DWARFContextInMemory(DebugObj);
MethodAddressVector Functions;
// Use symbol info to iterate functions in the object.