Skip to content

Commit 88c73c6

Browse files
authored
Merge pull request swiftlang#36150 from apple/runtime-Remove-unused-lldb-symbols
[runtime] Remove unused lldb symbols
2 parents 63755d3 + 31a9a34 commit 88c73c6

File tree

4 files changed

+0
-53
lines changed

4 files changed

+0
-53
lines changed

stdlib/public/runtime/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ set(swift_runtime_sources
3939
Enum.cpp
4040
EnvironmentVariables.cpp
4141
ErrorObjectCommon.cpp
42-
ErrorObjectConstants.cpp
4342
ErrorObjectNative.cpp
4443
Errors.cpp
4544
ErrorDefaultImpls.cpp

stdlib/public/runtime/ErrorObject.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,6 @@ id dynamicCastValueToNSError(OpaqueValue *src,
209209

210210
#endif
211211

212-
SWIFT_RUNTIME_STDLIB_SPI
213-
const size_t _swift_lldb_offsetof_SwiftError_typeMetadata;
214-
215-
SWIFT_RUNTIME_STDLIB_SPI
216-
const size_t _swift_lldb_sizeof_SwiftError;
217-
218212
} // namespace swift
219213

220214
#if SWIFT_OBJC_INTEROP

stdlib/public/runtime/ErrorObjectConstants.cpp

Lines changed: 0 additions & 24 deletions
This file was deleted.

test/stdlib/Runtime.swift.gyb

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -591,28 +591,6 @@ Runtime.test("Struct layout with reference storage types") {
591591
print(malkovich)
592592
}
593593

594-
#if !(canImport(Darwin) && !_runtime(_ObjC))
595-
Runtime.test("SwiftError layout constants for LLDB") {
596-
let offsetof_SwiftError_typeMetadata = pointerToSwiftCoreSymbol(name: "_swift_lldb_offsetof_SwiftError_typeMetadata")!
597-
let sizeof_SwiftError = pointerToSwiftCoreSymbol(name: "_swift_lldb_sizeof_SwiftError")!
598-
599-
#if canImport(Darwin)
600-
#if arch(i386) || arch(arm)
601-
expectEqual(20, offsetof_SwiftError_typeMetadata.load(as: UInt.self))
602-
expectEqual(36, sizeof_SwiftError.load(as: UInt.self))
603-
#else
604-
expectEqual(40, offsetof_SwiftError_typeMetadata.load(as: UInt.self))
605-
expectEqual(72, sizeof_SwiftError.load(as: UInt.self))
606-
#endif
607-
#elseif os(Linux) || os(Android) || os(Windows) || os(OpenBSD)
608-
expectEqual(16, offsetof_SwiftError_typeMetadata.load(as: UInt.self))
609-
expectEqual(32, sizeof_SwiftError.load(as: UInt.self))
610-
#else
611-
_UnimplementedError()
612-
#endif
613-
}
614-
#endif
615-
616594
var Reflection = TestSuite("Reflection")
617595

618596
func wrap1 (_ x: Any) -> Any { return x }

0 commit comments

Comments
 (0)