Skip to content

Commit 56a7b60

Browse files
committed
Remove __wasm__ cases from COFF and ELF code
1 parent 67abed1 commit 56a7b60

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

stdlib/public/runtime/ImageInspectionCOFF.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
#if !defined(__ELF__) && !defined(__MACH__) && !defined(__wasm__)
13+
#if !defined(__ELF__) && !defined(__MACH__)
1414

1515
#include "ImageInspection.h"
1616

stdlib/public/runtime/ImageInspectionELF.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,11 @@
2222

2323
#include "../SwiftShims/MetadataSections.h"
2424
#include "ImageInspection.h"
25-
#ifndef __wasm__
2625
#include <dlfcn.h>
27-
#endif
2826

2927
using namespace swift;
3028

3129
int swift::lookupSymbol(const void *address, SymbolInfo *info) {
32-
#ifndef __wasm__
3330
Dl_info dlinfo;
3431
if (dladdr(address, &dlinfo) == 0) {
3532
return 0;
@@ -40,9 +37,6 @@ int swift::lookupSymbol(const void *address, SymbolInfo *info) {
4037
info->symbolName.reset(dlinfo.dli_sname);
4138
info->symbolAddress = dlinfo.dli_saddr;
4239
return 1;
43-
#else
44-
return 0;
45-
#endif
4640
}
4741

4842
#endif // defined(__ELF__)

0 commit comments

Comments
 (0)