diff options
author | Zachary Turner <zturner@google.com> | 2015-04-23 17:37:47 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2015-04-23 17:37:47 +0000 |
commit | 6489d7b9490a0099ad1b0e5ba143591b4de71db3 (patch) | |
tree | 8c4bf553b036e4e3fee3c1fed84fd326db7704c3 /llvm/lib/DebugInfo | |
parent | 5461d45abf940b51cfe97eaa0a7cf274d43cb394 (diff) | |
download | bcm5719-llvm-6489d7b9490a0099ad1b0e5ba143591b4de71db3.tar.gz bcm5719-llvm-6489d7b9490a0099ad1b0e5ba143591b4de71db3.zip |
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
llvm-svn: 235612
Diffstat (limited to 'llvm/lib/DebugInfo')
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/CMakeLists.txt | 2 | ||||
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DIContext.cpp | 18 | ||||
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp | 2 |
3 files changed, 2 insertions, 20 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/CMakeLists.txt b/llvm/lib/DebugInfo/DWARF/CMakeLists.txt index 8c6d495228c..d5f8a6f24ee 100644 --- a/llvm/lib/DebugInfo/DWARF/CMakeLists.txt +++ b/llvm/lib/DebugInfo/DWARF/CMakeLists.txt @@ -1,5 +1,4 @@ add_llvm_library(LLVMDebugInfoDWARF - DIContext.cpp DWARFAbbreviationDeclaration.cpp DWARFAcceleratorTable.cpp DWARFCompileUnit.cpp @@ -19,4 +18,5 @@ add_llvm_library(LLVMDebugInfoDWARF ADDITIONAL_HEADER_DIRS ${LLVM_MAIN_INCLUDE_DIR}/llvm/DebugInfo/DWARF + ${LLVM_MAIN_INCLUDE_DIR}/llvm/DebugInfo ) diff --git a/llvm/lib/DebugInfo/DWARF/DIContext.cpp b/llvm/lib/DebugInfo/DWARF/DIContext.cpp deleted file mode 100644 index a1c6ca4bd74..00000000000 --- a/llvm/lib/DebugInfo/DWARF/DIContext.cpp +++ /dev/null @@ -1,18 +0,0 @@ -//===-- DIContext.cpp -----------------------------------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -#include "llvm/DebugInfo/DWARF/DIContext.h" -#include "llvm/DebugInfo/DWARF/DWARFContext.h" -using namespace llvm; - -DIContext::~DIContext() {} - -DIContext *DIContext::getDWARFContext(const object::ObjectFile &Obj) { - return new DWARFContextInMemory(Obj); -} diff --git a/llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp b/llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp index d4ecd69e0ae..406915a9e4c 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp @@ -256,7 +256,7 @@ DWARFUnit::DWOHolder::DWOHolder(StringRef DWOPath) return; DWOFile = std::move(Obj.get()); DWOContext.reset( - cast<DWARFContext>(DIContext::getDWARFContext(*DWOFile.getBinary()))); + cast<DWARFContext>(new DWARFContextInMemory(*DWOFile.getBinary()))); if (DWOContext->getNumDWOCompileUnits() > 0) DWOU = DWOContext->getDWOCompileUnitAtIndex(0); } |