mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The mangled name produced for the debugger should match the one emitted in reflection metadata, otherwise LLDB will not be able to lookup types when the module is compiled with the -module-abi-name flag. rdar://125848324
14 lines
617 B
Swift
14 lines
617 B
Swift
// RUN: %target-swift-frontend -primary-file %s -emit-ir -g -module-name=Hello -module-abi-name Goodbye -emit-ir -o - | %FileCheck %s
|
|
|
|
class SomeClass {}
|
|
// CHECK: DICompositeType(tag: DW_TAG_structure_type, name: "SomeClass",{{.*}}runtimeLang: DW_LANG_Swift, identifier: "$s7Goodbye9SomeClassCD"
|
|
|
|
@available(macOS 10.13, *)
|
|
@_originallyDefinedIn(module: "ThirdModule", OSX 10.12)
|
|
class DefinedElsewhere {}
|
|
// CHECK: DICompositeType(tag: DW_TAG_structure_type, name: "DefinedElsewhere",{{.*}}runtimeLang: DW_LANG_Swift, identifier: "$s7Goodbye16DefinedElsewhereCD")
|
|
|
|
let v1 = SomeClass()
|
|
let v2 = DefinedElsewhere()
|
|
|