diff options
author | Adrian Prantl <aprantl@apple.com> | 2016-01-20 01:29:34 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2016-01-20 01:29:34 +0000 |
commit | 8f55b66a53d8c1bb1fb9441201113af8b2a6886a (patch) | |
tree | 86c8f20c179e9f2dac61968d55d29a6b7eb5966e /clang/test/Modules/ModuleDebugInfo.cpp | |
parent | 59411db5202ed5a4e680457109cdbeed217219b6 (diff) | |
download | bcm5719-llvm-8f55b66a53d8c1bb1fb9441201113af8b2a6886a.tar.gz bcm5719-llvm-8f55b66a53d8c1bb1fb9441201113af8b2a6886a.zip |
Module Debugging: Fine-tune the condition that determines whether a type
can be found in a module.
There are externally visible anonymous types that can be found:
typedef struct { } s; // I can be found via the typedef.
There are anonymous internal types that can be found:
namespace { struct s {}; } // I can be found by name.
rdar://problem/24199640
llvm-svn: 258272
Diffstat (limited to 'clang/test/Modules/ModuleDebugInfo.cpp')
-rw-r--r-- | clang/test/Modules/ModuleDebugInfo.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Modules/ModuleDebugInfo.cpp b/clang/test/Modules/ModuleDebugInfo.cpp index 1f574568b6f..a2b735b3b70 100644 --- a/clang/test/Modules/ModuleDebugInfo.cpp +++ b/clang/test/Modules/ModuleDebugInfo.cpp @@ -81,4 +81,8 @@ // CHECK: !DICompositeType(tag: DW_TAG_structure_type, // CHECK-SAME-NOT: name: +// CHECK: !DICompositeType(tag: DW_TAG_structure_type, +// CHECK-SAME: name: "InAnonymousNamespace", +// CHECK-SAME: elements: !{{[0-9]+}}) + // CHECK-NEG-NOT: !DICompositeType(tag: DW_TAG_structure_type, name: "PureForwardDecl" |