summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2015-04-29 15:05:50 +0000
committerAdrian Prantl <aprantl@apple.com>2015-04-29 15:05:50 +0000
commit0d8208923386cd5f8c4e95a4b251e66f4271b88c (patch)
treec717f089abb95e8b3541fdeb2695c7f2caef4597 /clang/test
parentc09bdfa4cbfdf17989be8da18044ec8e65bd8f54 (diff)
downloadbcm5719-llvm-0d8208923386cd5f8c4e95a4b251e66f4271b88c.tar.gz
bcm5719-llvm-0d8208923386cd5f8c4e95a4b251e66f4271b88c.zip
Revert "Debug Info: Represent local anonymous unions as anonymous unions"
This reverts commit r236059 as it breaks the gdb buildbot. llvm-svn: 236110
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/CodeGenCXX/debug-info-anon-union-vars.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-anon-union-vars.cpp b/clang/test/CodeGenCXX/debug-info-anon-union-vars.cpp
index 318c9c9e23f..d75ce69d4c6 100644
--- a/clang/test/CodeGenCXX/debug-info-anon-union-vars.cpp
+++ b/clang/test/CodeGenCXX/debug-info-anon-union-vars.cpp
@@ -21,26 +21,8 @@ int test_it() {
return (c == 1);
}
-// This is not necessary (and actually harmful because it breaks IR assumptions)
-// for local variables.
-void foo() {
- union {
- int i;
- char c;
- };
- i = 8;
-}
-
// CHECK: [[FILE:.*]] = !MDFile(filename: "{{.*}}debug-info-anon-union-vars.cpp",
// CHECK: !MDGlobalVariable(name: "c",{{.*}} file: [[FILE]], line: 6,{{.*}} isLocal: true, isDefinition: true
// CHECK: !MDGlobalVariable(name: "d",{{.*}} file: [[FILE]], line: 6,{{.*}} isLocal: true, isDefinition: true
// CHECK: !MDGlobalVariable(name: "a",{{.*}} file: [[FILE]], line: 6,{{.*}} isLocal: true, isDefinition: true
// CHECK: !MDGlobalVariable(name: "b",{{.*}} file: [[FILE]], line: 6,{{.*}} isLocal: true, isDefinition: true
-// CHECK: !MDLocalVariable(
-// CHECK-NOT: name:
-// CHECK: type: ![[UNION:[0-9]+]]
-// CHECK: ![[UNION]] = !MDCompositeType(tag: DW_TAG_union_type,
-// CHECK-NOT: name:
-// CHECK: elements
-// CHECK: !MDDerivedType(tag: DW_TAG_member, name: "i", scope: ![[UNION]],
-// CHECK: !MDDerivedType(tag: DW_TAG_member, name: "c", scope: ![[UNION]],
OpenPOWER on IntegriCloud