Skip to content

Commit b373076

Browse files
Merge pull request #7383 from adrian-prantl/refactor-remove-ast8
fix minor typos
2 parents 75786f3 + 60dcf83 commit b373076

File tree

4 files changed

+5
-15
lines changed

4 files changed

+5
-15
lines changed

lldb/source/Plugins/Language/Swift/SwiftLanguage.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@
3838
#include <mutex>
3939

4040
#include "swift/AST/ImportCache.h"
41-
#include "swift/AST/Module.h"
42-
#include "swift/AST/Type.h"
43-
#include "swift/AST/Types.h"
4441
#include "swift/Basic/InitializeSwiftModules.h"
4542
#include "swift/Demangling/ManglingMacros.h"
4643
#include "llvm/Support/ConvertUTF.h"

lldb/source/Plugins/LanguageRuntime/Swift/SwiftLanguageRuntimeDynamicTypeResolution.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ llvm::Optional<uint64_t> SwiftLanguageRuntimeImpl::GetMemberVariableOffset(
496496
"[GetMemberVariableOffset] asked to resolve offset for member %s",
497497
member_name.str().c_str());
498498

499-
// Using the module context for RemoteAST is cheaper bit only safe
499+
// Using the module context for RemoteAST is cheaper but only safe
500500
// when there is no dynamic type resolution involved.
501501
// If this is already in the expression context, ask RemoteAST.
502502
if (instance_type.GetTypeSystem().isa_and_nonnull<SwiftASTContext>())
@@ -2361,8 +2361,8 @@ bool SwiftLanguageRuntimeImpl::GetDynamicTypeAndAddress_ClangType(
23612361

23622362
static bool IsIndirectEnumCase(ValueObject &valobj) {
23632363
return (valobj.GetLanguageFlags() &
2364-
SwiftASTContext::LanguageFlags::eIsIndirectEnumCase) ==
2365-
SwiftASTContext::LanguageFlags::eIsIndirectEnumCase;
2364+
TypeSystemSwift::LanguageFlags::eIsIndirectEnumCase) ==
2365+
TypeSystemSwift::LanguageFlags::eIsIndirectEnumCase;
23662366
}
23672367

23682368
static bool CouldHaveDynamicValue(ValueObject &in_value) {

lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserSwift.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@
1919
#include "DWARFDefines.h"
2020
#include "SymbolFileDWARF.h"
2121

22-
#include "swift/AST/ASTContext.h"
23-
#include "swift/AST/Decl.h"
24-
#include "swift/Demangling/Demangle.h"
25-
26-
#include "clang/AST/DeclObjC.h"
27-
2822
#include "Plugins/LanguageRuntime/Swift/SwiftLanguageRuntime.h"
2923
#include "Plugins/TypeSystem/Clang/TypeSystemClang.h"
3024
#include "Plugins/TypeSystem/Swift/TypeSystemSwiftTypeRef.h"
@@ -38,6 +32,8 @@
3832
#include "lldb/Utility/Log.h"
3933
#include "lldb/Utility/Status.h"
4034

35+
#include "clang/AST/DeclObjC.h"
36+
4137
using namespace lldb;
4238
using namespace lldb_private;
4339
using namespace lldb_private::dwarf;

lldb/source/Plugins/TypeSystem/Swift/TypeSystemSwiftTypeRef.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@
3434
#include "swift/ClangImporter/ClangImporter.h"
3535
#include "swift/../../lib/ClangImporter/ClangAdapter.h"
3636
#include "swift/Frontend/Frontend.h"
37-
#include "swift/AST/ClangModuleLoader.h"
38-
#include "swift/Basic/Version.h"
39-
#include "swift/Strings.h"
4037

4138
#include "clang/APINotes/APINotesManager.h"
4239
#include "clang/APINotes/APINotesReader.h"

0 commit comments

Comments
 (0)