summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/ExtDebugInfo.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2018-01-03 19:10:21 +0000
committerAdrian Prantl <aprantl@apple.com>2018-01-03 19:10:21 +0000
commitc5e3647f3cc663d20d8285fa16aa48c44d08218c (patch)
tree0527086c8786639765352bb7036ba42ae718b863 /clang/test/Modules/ExtDebugInfo.cpp
parent05d8f16aa41d78a384f37147ec639c54bd7dbd59 (diff)
downloadbcm5719-llvm-c5e3647f3cc663d20d8285fa16aa48c44d08218c.tar.gz
bcm5719-llvm-c5e3647f3cc663d20d8285fa16aa48c44d08218c.zip
-gmodules: Emit debug info for implicit module imports via #include.
When a type is only used as a template parameter and that type is the only type imported from another #include'd module, no skeleton CU for that module is generated, so a consumer doesn't know where to find the type definition. By emitting an import declaration, we can force a skeleton CU to be generated for each imported module. rdar://problem/36266156 llvm-svn: 321754
Diffstat (limited to 'clang/test/Modules/ExtDebugInfo.cpp')
-rw-r--r--clang/test/Modules/ExtDebugInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Modules/ExtDebugInfo.cpp b/clang/test/Modules/ExtDebugInfo.cpp
index 97386bc4d00..c57f1f034eb 100644
--- a/clang/test/Modules/ExtDebugInfo.cpp
+++ b/clang/test/Modules/ExtDebugInfo.cpp
@@ -187,7 +187,7 @@ void foo() {
// CHECK: !DIGlobalVariable(name: "anon_enum", {{.*}}, type: ![[ANON_ENUM:[0-9]+]]
// CHECK: !DICompositeType(tag: DW_TAG_enumeration_type, scope: ![[NS]],
-// CHECK-SAME: line: 16
+// CHECK-SAME: line: 19
// CHECK: !DIGlobalVariable(name: "GlobalUnion",
// CHECK-SAME: type: ![[GLOBAL_UNION:[0-9]+]]
OpenPOWER on IntegriCloud