2021-09-17 02:03:36 +08:00
|
|
|
// UNSUPPORTED: -zos, -aix
|
2015-07-01 01:39:51 +08:00
|
|
|
// RUN: rm -rf %t
|
2020-03-19 04:15:14 +08:00
|
|
|
// RUN: %clang_cc1 -debug-info-kind=limited -fmodules \
|
|
|
|
// RUN: -DGREETING="Hello World" -UNDEBUG \
|
|
|
|
// RUN: -fimplicit-module-maps -fmodules-cache-path=%t %s \
|
|
|
|
// RUN: -I %S/Inputs -isysroot /tmp/.. -I %t -emit-llvm -o - \
|
|
|
|
// RUN: | FileCheck %s --check-prefix=NOIMPORT
|
2016-05-04 07:06:40 +08:00
|
|
|
|
|
|
|
// NOIMPORT-NOT: !DIImportedEntity
|
|
|
|
// NOIMPORT-NOT: !DIModule
|
|
|
|
|
|
|
|
// RUN: rm -rf %t
|
2020-03-19 04:15:14 +08:00
|
|
|
// RUN: %clang_cc1 -debug-info-kind=limited -fmodules \
|
|
|
|
// RUN: -DGREETING="Hello World" -UNDEBUG \
|
|
|
|
// RUN: -fimplicit-module-maps -fmodules-cache-path=%t %s \
|
|
|
|
// RUN: -I %S/Inputs -isysroot /tmp/.. -I %t -emit-llvm \
|
|
|
|
// RUN: -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
|
2020-01-15 05:37:04 +08:00
|
|
|
// CHECK-SAME: sysroot: "/tmp/..")
|
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",
|
2020-01-15 05:37:04 +08:00
|
|
|
// CHECK-SAME: includePath: "{{.*}}test{{.*}}Modules{{.*}}Inputs"
|
2017-07-19 08:09:58 +08:00
|
|
|
// CHECK: ![[F]] = !DIFile(filename: {{.*}}debug-info-moduleimport.m
|
2015-09-22 01:48:42 +08:00
|
|
|
|
2020-03-19 04:15:14 +08:00
|
|
|
// RUN: %clang_cc1 -debug-info-kind=limited -fmodules -fimplicit-module-maps \
|
|
|
|
// RUN: -fmodules-cache-path=%t %s -I %S/Inputs -isysroot /tmp/.. -I %t \
|
|
|
|
// RUN: -emit-llvm -o - | FileCheck %s --check-prefix=NO-SKEL-CHECK
|
2015-09-22 01:48:42 +08:00
|
|
|
// NO-SKEL-CHECK: distinct !DICompileUnit
|
|
|
|
// NO-SKEL-CHECK-NOT: distinct !DICompileUnit
|
|
|
|
|
2020-03-19 04:15:14 +08:00
|
|
|
// RUN: %clang_cc1 -debug-info-kind=limited -fmodules -fimplicit-module-maps \
|
|
|
|
// RUN: -fmodules-cache-path=%t -fdebug-prefix-map=%t=/MODULE-CACHE \
|
2020-03-19 06:30:20 +08:00
|
|
|
// RUN: -fdebug-prefix-map=%S=/SRCDIR \
|
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
|
2020-03-19 06:30:20 +08:00
|
|
|
// SKEL-CHECK: includePath: "/SRCDIR/Inputs"
|
2020-03-19 04:14:07 +08:00
|
|
|
// SKEL-CHECK: distinct !DICompileUnit({{.*}}file: ![[CUFILE:[0-9]+]]
|
|
|
|
// SKEL-CHECK: ![[CUFILE]] = !DIFile({{.*}}directory: "[[COMP_DIR:.*]]"
|
2020-03-19 04:15:14 +08:00
|
|
|
// SKEL-CHECK: distinct !DICompileUnit({{.*}}file: ![[DWOFILE:[0-9]+]]{{.*}}splitDebugFilename: "/MODULE-CACHE{{.*}}dwoId
|
2020-03-19 04:14:07 +08:00
|
|
|
// SKEL-CHECK: ![[DWOFILE]] = !DIFile({{.*}}directory: "[[COMP_DIR]]"
|