File tree Expand file tree Collapse file tree 7 files changed +9
-6
lines changed Expand file tree Collapse file tree 7 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 19
19
20
20
#include " swift/AST/ASTTypeIDs.h"
21
21
#include " swift/AST/SimpleRequest.h"
22
+ #include " swift/TBDGen/TBDGen.h"
22
23
23
24
namespace llvm {
24
25
@@ -37,12 +38,11 @@ namespace swift {
37
38
38
39
class FileUnit ;
39
40
class ModuleDecl ;
40
- struct TBDGenOptions ;
41
41
42
42
class TBDGenDescriptor final {
43
43
using FileOrModule = llvm::PointerUnion<FileUnit *, ModuleDecl *>;
44
44
FileOrModule Input;
45
- const TBDGenOptions & Opts;
45
+ TBDGenOptions Opts;
46
46
47
47
TBDGenDescriptor (FileOrModule input, const TBDGenOptions &opts)
48
48
: Input(input), Opts(opts) {
@@ -62,6 +62,7 @@ class TBDGenDescriptor final {
62
62
63
63
// / Returns the TBDGen options.
64
64
const TBDGenOptions &getOptions () const { return Opts; }
65
+ TBDGenOptions &getOptions () { return Opts; }
65
66
66
67
const llvm::DataLayout &getDataLayout () const ;
67
68
const llvm::Triple &getTarget () const ;
Original file line number Diff line number Diff line change 14
14
15
15
#include " llvm/ADT/Hashing.h"
16
16
#include " llvm/ADT/StringSet.h"
17
- #include " swift/AST/TBDGenRequests.h"
18
17
#include " swift/Basic/Version.h"
19
18
#include < vector>
20
19
@@ -25,6 +24,7 @@ class raw_ostream;
25
24
namespace swift {
26
25
class FileUnit ;
27
26
class ModuleDecl ;
27
+ class TBDGenDescriptor ;
28
28
29
29
// / Options for controlling the exact set of symbols included in the TBD
30
30
// / output.
Original file line number Diff line number Diff line change 35
35
#include " swift/AST/IRGenRequests.h"
36
36
#include " swift/AST/NameLookup.h"
37
37
#include " swift/AST/ASTMangler.h"
38
+ #include " swift/AST/TBDGenRequests.h"
38
39
#include " swift/AST/TypeRefinementContext.h"
39
40
#include " swift/Basic/Dwarf.h"
40
41
#include " swift/Basic/Edit.h"
Original file line number Diff line number Diff line change 17
17
#include " swift/AST/DiagnosticsFrontend.h"
18
18
#include " swift/AST/FileUnit.h"
19
19
#include " swift/AST/Module.h"
20
+ #include " swift/AST/TBDGenRequests.h"
20
21
#include " swift/Basic/LLVM.h"
21
22
#include " swift/Demangling/Demangle.h"
22
23
#include " swift/Frontend/FrontendOptions.h"
Original file line number Diff line number Diff line change 16
16
#include " swift/AST/Module.h"
17
17
#include " swift/AST/SourceFile.h"
18
18
#include " swift/SIL/SILModule.h"
19
+ #include " swift/AST/TBDGenRequests.h"
19
20
#include " swift/Subsystems.h"
20
- #include " swift/TBDGen/TBDGen.h"
21
21
#include " llvm/IR/Module.h"
22
22
#include " llvm/ExecutionEngine/Orc/ThreadSafeModule.h"
23
23
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ static bool isGlobalOrStaticVar(VarDecl *VD) {
61
61
return VD->isStatic () || VD->getDeclContext ()->isModuleScopeContext ();
62
62
}
63
63
64
- TBDGenVisitor::TBDGenVisitor (TBDGenDescriptor desc,
64
+ TBDGenVisitor::TBDGenVisitor (const TBDGenDescriptor & desc,
65
65
SymbolCallbackFn symbolCallback)
66
66
: TBDGenVisitor(desc.getTarget(), desc.getDataLayout(),
67
67
desc.getParentModule(), desc.getOptions(),
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ class TBDGenVisitor : public ASTVisitor<TBDGenVisitor> {
150
150
151
151
// / Create a new visitor using the target and layout information from a
152
152
// / TBDGenDescriptor.
153
- TBDGenVisitor (TBDGenDescriptor desc, SymbolCallbackFn symbolCallback);
153
+ TBDGenVisitor (const TBDGenDescriptor & desc, SymbolCallbackFn symbolCallback);
154
154
155
155
~TBDGenVisitor () { assert (DeclStack.empty ()); }
156
156
void addMainIfNecessary (FileUnit *file) {
You can’t perform that action at this time.
0 commit comments