Skip to content

Commit 211ac64

Browse files
committed
libswift: add SubstitutionMap to Swift code
1 parent 91abdb6 commit 211ac64

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# This source file is part of the Swift.org open source project
2+
#
3+
# Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors
4+
# Licensed under Apache License v2.0 with Runtime Library Exception
5+
#
6+
# See http://swift.org/LICENSE.txt for license information
7+
# See http://swift.org/CONTRIBUTORS.txt for Swift project authors
8+
9+
add_swift_compiler_module(AST
10+
SubstitutionMap.swift)
11+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
//===--- PassUtils.swift - Utilities for optimzation passes ---------------===//
2+
//
3+
// This source file is part of the Swift.org open source project
4+
//
5+
// Copyright (c) 2014 - 2022 Apple Inc. and the Swift project authors
6+
// Licensed under Apache License v2.0 with Runtime Library Exception
7+
//
8+
// See https://swift.org/LICENSE.txt for license information
9+
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10+
//
11+
//===----------------------------------------------------------------------===//
12+
13+
import SILBridging
14+
15+
public struct SubstitutionMap {
16+
let bridged: BridgedSubstitutionMap
17+
18+
public init(_ bridged: BridgedSubstitutionMap) {
19+
self.bridged = bridged
20+
}
21+
}

SwiftCompilerSources/Sources/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
if(SWIFT_ENABLE_EXPERIMENTAL_STRING_PROCESSING)
1010
add_subdirectory(ExperimentalRegex)
1111
endif()
12+
add_subdirectory(AST)
1213
add_subdirectory(SIL)
1314
add_subdirectory(Optimizer)

0 commit comments

Comments
 (0)