Skip to content

Commit b3bc749

Browse files
committed
stdlib: Linux build fix
1 parent 7ba5617 commit b3bc749

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

stdlib/public/runtime/Demangle.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
#include "Private.h"
55

66
#if SWIFT_OBJC_INTEROP
7-
87
#include <objc/runtime.h>
8+
#endif
99

1010
// FIXME: This stuff should be merged with the existing logic in
1111
// include/swift/Reflection/TypeRefBuilder.h as part of the rewrite
@@ -298,5 +298,3 @@ Demangle::NodePointer swift::_swift_buildDemanglingForMetadata(const Metadata *t
298298
// Not a type.
299299
return nullptr;
300300
}
301-
302-
#endif

stdlib/public/runtime/Private.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,7 @@ namespace swift {
156156
const Metadata *
157157
_searchConformancesByMangledTypeName(const llvm::StringRef typeName);
158158

159-
#if SWIFT_OBJC_INTEROP
160159
Demangle::NodePointer _swift_buildDemanglingForMetadata(const Metadata *type);
161-
#endif
162160

163161
/// A helper function which avoids performing a store if the destination
164162
/// address already contains the source value. This is useful when

0 commit comments

Comments
 (0)