Skip to content

Commit 8ac54a5

Browse files
committed
[runtime] Remove unused lldb symbols
1 parent dcc1292 commit 8ac54a5

File tree

3 files changed

+0
-52
lines changed

3 files changed

+0
-52
lines changed

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)