Skip to content

Commit b5e1ab2

Browse files
committed
Move SwiftASTContext & TypeSystemSwift* into Plugins/TypeSystem/Swift
to mirror a similar move spearheaded by the Clang typesystem.
1 parent f80cf18 commit b5e1ab2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+616
-543
lines changed

lldb/include/lldb/Symbol/LineTable.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#ifndef liblldb_LineTable_h_
1010
#define liblldb_LineTable_h_
1111

12+
#include "lldb/Core/Address.h"
1213
#include "lldb/Core/ModuleChild.h"
1314
#include "lldb/Core/Section.h"
1415
#include "lldb/Symbol/LineEntry.h"

lldb/include/lldb/Target/SwiftLanguageRuntime.h

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,21 @@
1313
#ifndef liblldb_SwiftLanguageRuntime_h_
1414
#define liblldb_SwiftLanguageRuntime_h_
1515

16-
// C Includes
17-
// C++ Includes
18-
#include <mutex>
19-
#include <tuple>
20-
#include <vector>
21-
// Other libraries and framework includes
22-
// Project includes
2316
#include "Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.h"
17+
#include "Plugins/TypeSystem/Swift/SwiftASTContext.h"
2418
#include "lldb/Breakpoint/BreakpointPrecondition.h"
2519
#include "lldb/Core/PluginInterface.h"
26-
#include "lldb/Symbol/SwiftASTContext.h"
2720
#include "lldb/Target/LanguageRuntime.h"
2821
#include "lldb/lldb-private.h"
2922

3023
#include "llvm/ADT/Optional.h"
3124
#include "llvm/ADT/StringSet.h"
3225
#include "llvm/Support/Casting.h"
3326

27+
#include <mutex>
28+
#include <tuple>
29+
#include <vector>
30+
3431
namespace swift {
3532
namespace remote {
3633
class MemoryReader;

lldb/source/API/SystemInitializerFull.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
#include "Plugins/ExpressionParser/Swift/SwiftREPL.h"
126126
#include "Plugins/InstrumentationRuntime/SwiftRuntimeReporting/SwiftRuntimeReporting.h"
127127
#include "Plugins/Language/Swift/SwiftLanguage.h"
128-
#include "lldb/Symbol/SwiftASTContext.h"
128+
#include "Plugins/TypeSystem/Swift/SwiftASTContext.h"
129129
#include "lldb/Target/SwiftLanguageRuntime.h"
130130
// END SWIFT
131131

lldb/source/Core/Module.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
#include "Plugins/Language/ObjC/ObjCLanguage.h"
5555

5656
// BEGIN SWIFT
57-
#include "lldb/Symbol/SwiftASTContext.h"
57+
#include "Plugins/TypeSystem/Swift/SwiftASTContext.h"
5858
#include "lldb/Target/SwiftLanguageRuntime.h"
5959
// END SWIFT
6060

lldb/source/Core/ValueObject.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
#include "Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.h"
5555

5656
// BEGIN SWIFT
57-
#include "lldb/Symbol/SwiftASTContext.h"
57+
#include "Plugins/TypeSystem/Swift/SwiftASTContext.h"
5858
// END SWIFT
5959

6060
#include "llvm/Support/Compiler.h"

lldb/source/Core/ValueObjectDynamicValue.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include "lldb/Core/Value.h"
1111
#include "lldb/Core/ValueObject.h"
1212
#include "lldb/Symbol/CompilerType.h"
13-
#include "lldb/Symbol/SwiftASTContext.h"
1413
#include "lldb/Symbol/Type.h"
1514
#include "lldb/Target/ExecutionContext.h"
1615
#include "lldb/Target/LanguageRuntime.h"
@@ -23,6 +22,8 @@
2322
#include "lldb/Utility/Status.h"
2423
#include "lldb/lldb-types.h"
2524

25+
#include "Plugins/TypeSystem/Swift/SwiftASTContext.h"
26+
2627
#include <string.h>
2728
namespace lldb_private {
2829
class Declaration;

lldb/source/Core/ValueObjectVariable.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include "lldb/Symbol/Declaration.h"
1717
#include "lldb/Symbol/Function.h"
1818
#include "lldb/Symbol/ObjectFile.h"
19-
#include "lldb/Symbol/SwiftASTContext.h"
2019
#include "lldb/Symbol/SymbolContext.h"
2120
#include "lldb/Symbol/SymbolContextScope.h"
2221
#include "lldb/Symbol/Type.h"
@@ -33,6 +32,8 @@
3332
#include "lldb/lldb-private-enumerations.h"
3433
#include "lldb/lldb-types.h"
3534

35+
#include "Plugins/TypeSystem/Swift/TypeSystemSwift.h"
36+
3637
#include "llvm/ADT/StringRef.h"
3738

3839
#include <assert.h>

lldb/source/Expression/Materializer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include "lldb/Core/ValueObjectVariable.h"
1313
#include "lldb/Expression/ExpressionVariable.h"
1414
#include "lldb/Symbol/Symbol.h"
15-
#include "lldb/Symbol/SwiftASTContext.h"
1615
#include "lldb/Symbol/Type.h"
1716
#include "lldb/Symbol/Variable.h"
1817
#include "lldb/Target/ExecutionContext.h"
@@ -24,6 +23,8 @@
2423
#include "lldb/Utility/Log.h"
2524
#include "lldb/Utility/RegisterValue.h"
2625

26+
#include "Plugins/TypeSystem/Swift/SwiftASTContext.h"
27+
2728
#include <memory>
2829

2930
using namespace lldb_private;

lldb/source/Expression/UserExpression.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#include "lldb/Symbol/Block.h"
3131
#include "lldb/Symbol/Function.h"
3232
#include "lldb/Symbol/ObjectFile.h"
33-
#include "lldb/Symbol/SwiftASTContext.h"
3433
#include "lldb/Symbol/SymbolVendor.h"
3534
#include "lldb/Symbol/Type.h"
3635
#include "lldb/Symbol/TypeSystem.h"
@@ -45,6 +44,8 @@
4544
#include "lldb/Utility/Log.h"
4645
#include "lldb/Utility/StreamString.h"
4746

47+
#include "Plugins/TypeSystem/Swift/SwiftASTContext.h"
48+
4849
using namespace lldb_private;
4950

5051
char UserExpression::ID;

lldb/source/Plugins/ExpressionParser/Clang/ClangPersistentVariables.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include "lldb/Utility/Log.h"
1717
#include "lldb/Utility/StreamString.h"
1818

19-
#include "lldb/Symbol/SwiftASTContext.h" // Needed for llvm::isa<SwiftASTContext>(...)
19+
#include "Plugins/TypeSystem/Swift/SwiftASTContext.h" // Needed for llvm::isa<SwiftASTContext>(...)
2020
#include "lldb/Symbol/TypeSystem.h"
2121

2222
#include "swift/AST/Decl.h"

0 commit comments

Comments
 (0)