SymbolFileDWARFDwoDwp.cpp revision 360784
11541Srgrimes//===-- SymbolFileDWARFDwoDwp.cpp -------------------------------*- C++ -*-===// 21541Srgrimes// 31541Srgrimes// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 41541Srgrimes// See https://llvm.org/LICENSE.txt for license information. 51541Srgrimes// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 61541Srgrimes// 71541Srgrimes//===----------------------------------------------------------------------===// 81541Srgrimes 91541Srgrimes#include "SymbolFileDWARFDwoDwp.h" 101541Srgrimes 111541Srgrimes#include "lldb/Core/Section.h" 121541Srgrimes#include "lldb/Expression/DWARFExpression.h" 131541Srgrimes#include "lldb/Symbol/ObjectFile.h" 141541Srgrimes#include "lldb/Utility/LLDBAssert.h" 151541Srgrimes 161541Srgrimes#include "DWARFUnit.h" 171541Srgrimes#include "DWARFDebugInfo.h" 181541Srgrimes 191541Srgrimesusing namespace lldb; 201541Srgrimesusing namespace lldb_private; 211541Srgrimes 221541Srgrimeschar SymbolFileDWARFDwoDwp::ID; 231541Srgrimes 241541SrgrimesSymbolFileDWARFDwoDwp::SymbolFileDWARFDwoDwp(SymbolFileDWARFDwp *dwp_symfile, 251541Srgrimes ObjectFileSP objfile, 261541Srgrimes DWARFCompileUnit &dwarf_cu, 271541Srgrimes uint64_t dwo_id) 281541Srgrimes : SymbolFileDWARFDwo(objfile, dwarf_cu), m_dwp_symfile(dwp_symfile), 291541Srgrimes m_dwo_id(dwo_id) {} 301541Srgrimes 311541Srgrimesvoid SymbolFileDWARFDwoDwp::LoadSectionData(lldb::SectionType sect_type, 321541Srgrimes DWARFDataExtractor &data) { 3310939Swollman if (m_dwp_symfile->LoadSectionData(m_dwo_id, sect_type, data)) 3450477Speter return; 351541Srgrimes 361541Srgrimes SymbolFileDWARF::LoadSectionData(sect_type, data); 371541Srgrimes} 381549Srgrimes