Skip to content

Commit 2ab31f3

Browse files
author
Raphael Isemann
committed
[upstreaming] Move Swift specific code in lldb-forward.h to own file
1 parent cb0125f commit 2ab31f3

File tree

2 files changed

+38
-4
lines changed

2 files changed

+38
-4
lines changed

lldb/include/lldb/lldb-forward.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,6 @@ class SectionList;
190190
class SectionLoadHistory;
191191
class SectionLoadList;
192192
class Settings;
193-
class SwiftASTContext;
194-
class SwiftLanguageRuntime;
195-
class SwiftREPL;
196193
class SourceManager;
197194
class SourceManagerImpl;
198195
class StackFrame;
@@ -411,7 +408,6 @@ typedef std::weak_ptr<lldb_private::Section> SectionWP;
411408
typedef std::shared_ptr<lldb_private::SectionLoadList> SectionLoadListSP;
412409
typedef std::shared_ptr<lldb_private::SearchFilter> SearchFilterSP;
413410
typedef std::shared_ptr<lldb_private::Settings> SettingsSP;
414-
typedef std::shared_ptr<lldb_private::SwiftASTContext> SwiftASTContextSP;
415411
typedef std::unique_ptr<lldb_private::SourceManager> SourceManagerUP;
416412
typedef std::shared_ptr<lldb_private::StackFrame> StackFrameSP;
417413
typedef std::unique_ptr<lldb_private::StackFrame> StackFrameUP;
@@ -489,5 +485,7 @@ class StringRef;
489485

490486
} // namespace llvm
491487

488+
#include "swift-lldb-forward.h"
489+
492490
#endif // #if defined(__cplusplus)
493491
#endif // LLDB_lldb_forward_h_
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
//===-- swift-lldb-forward.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_swift_lldb_forward_h_
10+
#define LLDB_swift_lldb_forward_h_
11+
12+
#include "lldb-forward.h"
13+
14+
#if defined(__cplusplus)
15+
16+
#include "lldb/Utility/SharingPtr.h"
17+
18+
// lldb forward declarations
19+
namespace lldb_private {
20+
class SwiftASTContext;
21+
class SwiftLanguageRuntime;
22+
class SwiftREPL;
23+
} // namespace lldb_private
24+
25+
// lldb forward declarations
26+
namespace lldb {
27+
typedef std::shared_ptr<lldb_private::SwiftASTContext> SwiftASTContextSP;
28+
} // namespace lldb
29+
30+
// llvm forward declarations
31+
namespace llvm {
32+
33+
} // namespace llvm
34+
35+
#endif // #if defined(__cplusplus)
36+
#endif // LLDB_swift_lldb_forward_h_

0 commit comments

Comments
 (0)