1 //===-- DWARFContext.h ------------------------------------------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #ifndef LLDB_PLUGINS_SYMBOLFILE_DWARF_DWARFCONTEXT_H 10 #define LLDB_PLUGINS_SYMBOLFILE_DWARF_DWARFCONTEXT_H 11 12 #include "DWARFDataExtractor.h" 13 #include "lldb/Core/Module.h" 14 #include "llvm/ADT/Optional.h" 15 #include <memory> 16 17 namespace lldb_private { 18 class DWARFContext { 19 private: 20 Module &m_module; 21 llvm::Optional<DWARFDataExtractor> m_data_debug_aranges; 22 23 public: 24 explicit DWARFContext(Module &module); 25 26 const DWARFDataExtractor *getOrLoadArangesData(); 27 }; 28 } // namespace lldb_private 29 30 #endif 31