Skip to content

Commit b5cfeaa

Browse files
author
walter erquinigo
committed
[LLDB] Export DWARF Parser symbols for external language plugins
1 parent 12f4e11 commit b5cfeaa

33 files changed

+171
-105
lines changed

lldb/include/lldb/Expression/DWARFExpression.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
#include "llvm/DebugInfo/DWARF/DWARFLocationExpression.h"
1919
#include <functional>
2020

21-
class DWARFUnit;
22-
2321
namespace lldb_private {
2422

23+
class DWARFUnit;
24+
2525
/// \class DWARFExpression DWARFExpression.h
2626
/// "lldb/Expression/DWARFExpression.h" Encapsulates a DWARF location
2727
/// expression and interprets it.
@@ -45,7 +45,7 @@ class DWARFExpression {
4545
DWARFExpression(const DataExtractor &data);
4646

4747
/// Destructor
48-
virtual ~DWARFExpression();
48+
~DWARFExpression();
4949

5050
/// Return true if the location expression contains data
5151
bool IsValid() const;

lldb/include/lldb/Expression/DWARFExpressionList.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
#include "lldb/Utility/RangeMap.h"
1414
#include "lldb/lldb-private.h"
1515

16-
class DWARFUnit;
17-
1816
namespace lldb_private {
1917

18+
class DWARFUnit;
19+
2020
/// \class DWARFExpressionList DWARFExpressionList.h
2121
/// "lldb/Expression/DWARFExpressionList.h" Encapsulates a range map from file
2222
/// address range to a single DWARF location expression.

lldb/include/lldb/Symbol/TypeSystem.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@
2828
#include "lldb/Symbol/CompilerDeclContext.h"
2929
#include "lldb/lldb-private.h"
3030

31-
class DWARFDIE;
32-
class DWARFASTParser;
3331
class PDBASTParser;
3432

3533
namespace lldb_private {
34+
35+
class DWARFDIE;
36+
class DWARFASTParser;
37+
3638
namespace npdb {
3739
class PdbAstBuilder;
3840
} // namespace npdb
@@ -579,7 +581,7 @@ class TypeSystemMap {
579581
llvm::Expected<lldb::TypeSystemSP> GetTypeSystemForLanguage(
580582
lldb::LanguageType language,
581583
std::optional<CreateCallback> create_callback = std::nullopt);
582-
};
584+
};
583585

584586
} // namespace lldb_private
585587

lldb/source/Plugins/SymbolFile/DWARF/DIERef.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <cassert>
1515
#include <optional>
1616

17+
namespace lldb_private {
1718
/// Identifies a DWARF debug info entry within a given Module. It contains three
1819
/// "coordinates":
1920
/// - file_index: identifies the separate stand alone debug info file
@@ -131,10 +132,12 @@ class DIERef {
131132
static_assert(sizeof(DIERef) == 8);
132133

133134
typedef std::vector<DIERef> DIEArray;
135+
} // namespace lldb_private
134136

135137
namespace llvm {
136-
template<> struct format_provider<DIERef> {
137-
static void format(const DIERef &ref, raw_ostream &OS, StringRef Style);
138+
template <> struct format_provider<lldb_private::DIERef> {
139+
static void format(const lldb_private::DIERef &ref, raw_ostream &OS,
140+
StringRef Style);
138141
};
139142
} // namespace llvm
140143

lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParser.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@
1717
#include "lldb/lldb-enumerations.h"
1818
#include <optional>
1919

20-
class DWARFDIE;
2120
namespace lldb_private {
21+
class DWARFDIE;
2222
class CompileUnit;
2323
class ExecutionContext;
24-
}
2524
class SymbolFileDWARF;
2625

2726
class DWARFASTParser {
@@ -65,5 +64,6 @@ class DWARFASTParser {
6564

6665
static lldb::AccessType GetAccessTypeFromDWARF(uint32_t dwarf_accessibility);
6766
};
67+
} // namespace lldb_private
6868

6969
#endif // LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFASTPARSER_H

0 commit comments

Comments
 (0)