2015-07-01 01:39:51 +08:00
|
|
|
// RUN: rm -rf %t
|
2016-05-04 07:06:40 +08:00
|
|
|
// RUN: %clang_cc1 -debug-info-kind=limited -fmodules -DGREETING="Hello World" -UNDEBUG -fimplicit-module-maps -fmodules-cache-path=%t %s -I %S/Inputs -isysroot /tmp/.. -I %t -emit-llvm -o - | FileCheck %s --check-prefix=NOIMPORT
|
|
|
|
|
|
|
|
// NOIMPORT-NOT: !DIImportedEntity
|
|
|
|
// NOIMPORT-NOT: !DIModule
|
|
|
|
|
|
|
|
// RUN: rm -rf %t
|
|
|
|
// RUN: %clang_cc1 -debug-info-kind=limited -fmodules -DGREETING="Hello World" -UNDEBUG -fimplicit-module-maps -fmodules-cache-path=%t %s -I %S/Inputs -isysroot /tmp/.. -I %t -emit-llvm -debugger-tuning=lldb -o - | FileCheck %s
|
2015-07-01 01:39:51 +08:00
|
|
|
|
2015-07-01 02:32:50 +08:00
|
|
|
// CHECK: ![[CU:.*]] = distinct !DICompileUnit
|
2015-09-09 04:41:52 +08:00
|
|
|
@import DebugObjC;
|
2015-09-22 01:48:42 +08:00
|
|
|
// CHECK: !DIImportedEntity(tag: DW_TAG_imported_declaration, scope: ![[CU]],
|
2017-07-19 08:09:58 +08:00
|
|
|
// CHECK-SAME: entity: ![[MODULE:.*]], file: ![[F:[0-9]+]],
|
|
|
|
// CHECK-SAME: line: [[@LINE-3]])
|
2015-09-22 01:48:42 +08:00
|
|
|
// CHECK: ![[MODULE]] = !DIModule(scope: null, name: "DebugObjC",
|
|
|
|
// CHECK-SAME: configMacros: "\22-DGREETING=Hello World\22 \22-UNDEBUG\22",
|
|
|
|
// CHECK-SAME: includePath: "{{.*}}test{{.*}}Modules{{.*}}Inputs",
|
|
|
|
// CHECK-SAME: isysroot: "/tmp/..")
|
2017-07-19 08:09:58 +08:00
|
|
|
// CHECK: ![[F]] = !DIFile(filename: {{.*}}debug-info-moduleimport.m
|
2015-09-22 01:48:42 +08:00
|
|
|
|
2015-10-08 12:24:12 +08:00
|
|
|
// RUN: %clang_cc1 -debug-info-kind=limited -fmodules -fimplicit-module-maps -fmodules-cache-path=%t \
|
2015-09-22 01:48:42 +08:00
|
|
|
// RUN: %s -I %S/Inputs -isysroot /tmp/.. -I %t -emit-llvm -o - \
|
|
|
|
// RUN: | FileCheck %s --check-prefix=NO-SKEL-CHECK
|
|
|
|
// NO-SKEL-CHECK: distinct !DICompileUnit
|
|
|
|
// NO-SKEL-CHECK-NOT: distinct !DICompileUnit
|
|
|
|
|
2015-10-08 12:24:12 +08:00
|
|
|
// RUN: %clang_cc1 -debug-info-kind=limited -fmodules -fimplicit-module-maps -fmodules-cache-path=%t \
|
2015-09-22 01:48:42 +08:00
|
|
|
// RUN: -fmodule-format=obj -dwarf-ext-refs \
|
|
|
|
// RUN: %s -I %S/Inputs -isysroot /tmp/.. -I %t -emit-llvm -o - \
|
|
|
|
// RUN: | FileCheck %s --check-prefix=SKEL-CHECK
|
|
|
|
// SKEL-CHECK: distinct !DICompileUnit
|
|
|
|
// SKEL-CHECK: distinct !DICompileUnit{{.*}}dwoId
|