Debug Info: type-unique enum types by virtue of their mangled name.

rdar://problem/20015686

Swift SVN r26104
This commit is contained in:
Adrian Prantl
2015-03-13 18:13:59 +00:00
parent f54e3570a3
commit 3c6af3610a
5 changed files with 16 additions and 13 deletions

View File

@@ -102,8 +102,8 @@ enum TriValue {
case true_
case top
}
// CHECK-DAG: !MDGlobalVariable(name: "unknown",{{.*}} type: ![[UNIONTYPE:[^,)]+]]
// CHECK-DAG: ![[UNIONTYPE]] = !MDCompositeType(tag: DW_TAG_union_type, name: "_TtO{{9variables|4main}}8TriValue"
// CHECK-DAG: !MDGlobalVariable(name: "unknown",{{.*}} type: !"_TtO{{9variables|4main}}8TriValue"
// CHECK-DAG: !MDCompositeType(tag: DW_TAG_union_type, name: "TriValue", {{.*}}identifier: "_TtO{{9variables|4main}}8TriValue"
var unknown = TriValue.top
func println(value: TriValue) {
switch value {