Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
source/Plugins/SymbolFile/DWARF/DWARFBaseDIE.h
//===-- DWARFBaseDIE.h -----------------------------------------*- C++ -*-===// | //===-- DWARFBaseDIE.h -----------------------------------------*- C++ -*-===// | ||||
// | // | ||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||||
// See https://llvm.org/LICENSE.txt for license information. | // See https://llvm.org/LICENSE.txt for license information. | ||||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||||
// | // | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
#ifndef SymbolFileDWARF_DWARFBaseDIE_h_ | #ifndef SymbolFileDWARF_DWARFBaseDIE_h_ | ||||
#define SymbolFileDWARF_DWARFBaseDIE_h_ | #define SymbolFileDWARF_DWARFBaseDIE_h_ | ||||
#include "lldb/Core/dwarf.h" | #include "lldb/Core/dwarf.h" | ||||
#include "lldb/lldb-types.h" | #include "lldb/lldb-types.h" | ||||
#include "llvm/Support/Error.h" | |||||
class DIERef; | class DIERef; | ||||
class DWARFASTParser; | class DWARFASTParser; | ||||
class DWARFAttributes; | class DWARFAttributes; | ||||
class DWARFUnit; | class DWARFUnit; | ||||
class DWARFDebugInfoEntry; | class DWARFDebugInfoEntry; | ||||
class DWARFDeclContext; | class DWARFDeclContext; | ||||
class SymbolFileDWARF; | class SymbolFileDWARF; | ||||
Show All 27 Lines | public: | ||||
SymbolFileDWARF *GetDWARF() const; | SymbolFileDWARF *GetDWARF() const; | ||||
DWARFUnit *GetCU() const { return m_cu; } | DWARFUnit *GetCU() const { return m_cu; } | ||||
DWARFDebugInfoEntry *GetDIE() const { return m_die; } | DWARFDebugInfoEntry *GetDIE() const { return m_die; } | ||||
llvm::Optional<DIERef> GetDIERef() const; | llvm::Optional<DIERef> GetDIERef() const; | ||||
lldb_private::TypeSystem *GetTypeSystem() const; | llvm::Expected<lldb_private::TypeSystem &> GetTypeSystem() const; | ||||
DWARFASTParser *GetDWARFParser() const; | DWARFASTParser *GetDWARFParser() const; | ||||
void Set(DWARFUnit *cu, DWARFDebugInfoEntry *die) { | void Set(DWARFUnit *cu, DWARFDebugInfoEntry *die) { | ||||
if (cu && die) { | if (cu && die) { | ||||
m_cu = cu; | m_cu = cu; | ||||
m_die = die; | m_die = die; | ||||
} else { | } else { | ||||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |