summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/Inputs/DebugInfoNamespace/A.h
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-05-11 22:59:19 +0000
committerAdrian Prantl <aprantl@apple.com>2017-05-11 22:59:19 +0000
commitd88705587fbd2a207d204e1b5d9d6df183a5ec9d (patch)
tree2895644f74ef7540e225b920d239c48faf88bd0a /clang/test/Modules/Inputs/DebugInfoNamespace/A.h
parentd644ec764735a14943543ca1848c3b9fe77dfa0c (diff)
downloadbcm5719-llvm-d88705587fbd2a207d204e1b5d9d6df183a5ec9d.tar.gz
bcm5719-llvm-d88705587fbd2a207d204e1b5d9d6df183a5ec9d.zip
Module Debug Info: Emit namespaced C++ forward decls in the correct module.
The AST merges NamespaceDecls, but for module debug info it is important to put a namespace decl (or rather its children) into the correct (sub-)module, so we need to use the parent module of the decl that triggered this namespace to be serialized as a second key when looking up DINamespace nodes. rdar://problem/29339538 llvm-svn: 302840
Diffstat (limited to 'clang/test/Modules/Inputs/DebugInfoNamespace/A.h')
-rw-r--r--clang/test/Modules/Inputs/DebugInfoNamespace/A.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/DebugInfoNamespace/A.h b/clang/test/Modules/Inputs/DebugInfoNamespace/A.h
new file mode 100644
index 00000000000..dc5a1cd26ab
--- /dev/null
+++ b/clang/test/Modules/Inputs/DebugInfoNamespace/A.h
@@ -0,0 +1,3 @@
+namespace N {
+ struct A {};
+}
OpenPOWER on IntegriCloud