diff options
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); } |