File tree Expand file tree Collapse file tree 3 files changed +33
-2
lines changed Expand file tree Collapse file tree 3 files changed +33
-2
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ set(swift_runtime_sources
53
53
ImageInspectionELF.cpp
54
54
ImageInspectionCOFF.cpp
55
55
ImageInspectionStatic.cpp
56
+ ImageInspectionWasm.cpp
56
57
KeyPaths.cpp
57
58
KnownMetadata.cpp
58
59
Metadata.cpp
@@ -123,7 +124,7 @@ foreach(sdk IN LISTS SWIFT_SDKS)
123
124
set (image_inspection_shared_file ImageInspectionELF.cpp )
124
125
elseif (SWIFT_BUILD_STATIC_STDLIB AND "${sdk} " STREQUAL "WASI" )
125
126
set (image_inspection_shared_sdk "${sdk} " )
126
- set (image_inspection_shared_file ImageInspectionELF .cpp )
127
+ set (image_inspection_shared_file ImageInspectionWasm .cpp )
127
128
# Set default arch
128
129
set (primary_arch "wasm32" )
129
130
endif ()
Original file line number Diff line number Diff line change 18
18
// /
19
19
// ===----------------------------------------------------------------------===//
20
20
21
- #if defined(__ELF__) || defined(__wasm__)
21
+ #if defined(__ELF__)
22
22
23
23
#include " ../SwiftShims/MetadataSections.h"
24
24
#include " ImageInspection.h"
Original file line number Diff line number Diff line change
1
+ // ===--- ImageInspectionStatic.cpp - image inspection for static stdlib ---===//
2
+ //
3
+ // This source file is part of the Swift.org open source project
4
+ //
5
+ // Copyright (c) 2014 - 2021 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
+ // / \file
14
+ // /
15
+ // / Implementation of ImageInspection for WebAssembly.
16
+ // /
17
+ // ===----------------------------------------------------------------------===//
18
+
19
+ #if defined(__wasm__)
20
+
21
+ #include " ../SwiftShims/MetadataSections.h"
22
+ #include " ImageInspection.h"
23
+
24
+ using namespace swift ;
25
+
26
+ int swift::lookupSymbol (const void *address, SymbolInfo *info) {
27
+ return 0 ;
28
+ }
29
+
30
+ #endif // defined(__wasm__)
You can’t perform that action at this time.
0 commit comments