mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Currently LLDB calls into ide::getDeclFromMangledSymbolName() to get to this information and we would like to get rid of this call. rdar://problem/47798056
21 lines
700 B
Swift
21 lines
700 B
Swift
// RUN: %target-swift-frontend -primary-file %s -emit-ir -g -o - | %FileCheck %s
|
|
|
|
public protocol P {
|
|
var v : Int32 { get };
|
|
}
|
|
|
|
public extension P {
|
|
// CHECK: define {{.*}}swiftcc i32 @"$s4main1PPAAE1fs5Int32VyF"
|
|
public func f() -> Int32 {
|
|
// CHECK-NEXT: entry:
|
|
// CHECK-NEXT: %[[ALLOCA:.*]] = alloca %swift.type*,
|
|
// CHECK-NEXT: @llvm.dbg.declare(metadata %swift.type** %[[ALLOCA]],
|
|
// CHECK-SAME: metadata ![[SELFMETA:.*]], metadata !DIExpression())
|
|
return v
|
|
}
|
|
}
|
|
|
|
// CHECK: ![[SELFMETA]] = !DILocalVariable(name: "$\CF\84_0_0",
|
|
// CHECK-SAME: type: ![[SELFTY:[0-9]+]], flags: DIFlagArtificial)
|
|
// CHECK: ![[SELFTY]] = !DIDerivedType(tag: DW_TAG_typedef, name: "Self"
|