Changeset View
Changeset View
Standalone View
Standalone View
clang/test/Driver/split-debug.c
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | |||||
// RUN: %clang -target x86_64-unknown-linux-gnu -g -S -### %s 2> %t | // RUN: %clang -target x86_64-unknown-linux-gnu -g -S -### %s 2> %t | ||||
// RUN: FileCheck -check-prefix=CHECK-NOINLINE-WITHOUT-SPLIT < %t %s | // RUN: FileCheck -check-prefix=CHECK-NOINLINE-WITHOUT-SPLIT < %t %s | ||||
// | // | ||||
// RUN: %clang -target x86_64-unknown-linux-gnu -g -fno-split-dwarf-inlining -S -### %s 2> %t | // RUN: %clang -target x86_64-unknown-linux-gnu -g -fno-split-dwarf-inlining -S -### %s 2> %t | ||||
// RUN: FileCheck -check-prefix=CHECK-NOINLINE-WITHOUT-SPLIT < %t %s | // RUN: FileCheck -check-prefix=CHECK-NOINLINE-WITHOUT-SPLIT < %t %s | ||||
// | // | ||||
// CHECK-NOINLINE-WITHOUT-SPLIT: "-fno-split-dwarf-inlining" | // CHECK-NOINLINE-WITHOUT-SPLIT: "-fno-split-dwarf-inlining" | ||||
// CHECK-NOINLINE-WITHOUT-SPLIT: "-debug-info-kind=limited" | // CHECK-NOINLINE-WITHOUT-SPLIT: "-debug-info-kind=constructor" | ||||
// RUN: %clang -target x86_64-unknown-linux-gnu -gmlt -gsplit-dwarf -fno-split-dwarf-inlining -S -### %s 2> %t | // RUN: %clang -target x86_64-unknown-linux-gnu -gmlt -gsplit-dwarf -fno-split-dwarf-inlining -S -### %s 2> %t | ||||
// RUN: FileCheck -check-prefix=CHECK-SPLIT-WITH-GMLT < %t %s | // RUN: FileCheck -check-prefix=CHECK-SPLIT-WITH-GMLT < %t %s | ||||
// | // | ||||
// CHECK-SPLIT-WITH-GMLT: "-debug-info-kind=limited" | // CHECK-SPLIT-WITH-GMLT: "-debug-info-kind=constructor" | ||||
// CHECK-SPLIT-WITH-GMLT: "-split-dwarf-output" | // CHECK-SPLIT-WITH-GMLT: "-split-dwarf-output" | ||||
// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -fno-split-dwarf-inlining -S -### %s 2> %t | // RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -fno-split-dwarf-inlining -S -### %s 2> %t | ||||
// RUN: FileCheck -check-prefix=CHECK-SPLIT-WITH-NOINL < %t %s | // RUN: FileCheck -check-prefix=CHECK-SPLIT-WITH-NOINL < %t %s | ||||
// | // | ||||
// CHECK-SPLIT-WITH-NOINL: "-debug-info-kind=limited" | // CHECK-SPLIT-WITH-NOINL: "-debug-info-kind=constructor" | ||||
// CHECK-SPLIT-WITH-NOINL: "-split-dwarf-output" | // CHECK-SPLIT-WITH-NOINL: "-split-dwarf-output" | ||||
// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -gmlt -fsplit-dwarf-inlining -S -### %s 2> %t | // RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -gmlt -fsplit-dwarf-inlining -S -### %s 2> %t | ||||
// RUN: FileCheck -check-prefix=CHECK-GMLT-OVER-SPLIT < %t %s | // RUN: FileCheck -check-prefix=CHECK-GMLT-OVER-SPLIT < %t %s | ||||
// | // | ||||
// CHECK-GMLT-OVER-SPLIT: "-debug-info-kind=line-tables-only" | // CHECK-GMLT-OVER-SPLIT: "-debug-info-kind=line-tables-only" | ||||
// CHECK-GMLT-OVER-SPLIT-NOT: "-split-dwarf-file" | // CHECK-GMLT-OVER-SPLIT-NOT: "-split-dwarf-file" | ||||
// CHECK-GMLT-OVER-SPLIT-NOT: "-split-dwarf-output" | // CHECK-GMLT-OVER-SPLIT-NOT: "-split-dwarf-output" | ||||
// RUN: %clang -target x86_64-unknown-linux-gnu -gmlt -gsplit-dwarf -S -### %s 2> %t | // RUN: %clang -target x86_64-unknown-linux-gnu -gmlt -gsplit-dwarf -S -### %s 2> %t | ||||
// RUN: FileCheck -check-prefix=CHECK-SPLIT-OVER-GMLT < %t %s | // RUN: FileCheck -check-prefix=CHECK-SPLIT-OVER-GMLT < %t %s | ||||
// | // | ||||
// CHECK-SPLIT-OVER-GMLT: "-debug-info-kind=limited" | // CHECK-SPLIT-OVER-GMLT: "-debug-info-kind=constructor" | ||||
// CHECK-SPLIT-OVER-GMLT: "-split-dwarf-file" | // CHECK-SPLIT-OVER-GMLT: "-split-dwarf-file" | ||||
// CHECK-SPLIT-OVER-GMLT: "-split-dwarf-output" | // CHECK-SPLIT-OVER-GMLT: "-split-dwarf-output" | ||||
// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -g0 -fno-split-dwarf-inlining -S -### %s 2> %t | // RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -g0 -fno-split-dwarf-inlining -S -### %s 2> %t | ||||
// RUN: FileCheck -check-prefix=CHECK-G0-OVER-SPLIT < %t %s | // RUN: FileCheck -check-prefix=CHECK-G0-OVER-SPLIT < %t %s | ||||
// | // | ||||
// CHECK-G0-OVER-SPLIT-NOT: "-debug-info-kind | // CHECK-G0-OVER-SPLIT-NOT: "-debug-info-kind | ||||
// CHECK-G0-OVER-SPLIT-NOT: "-split-dwarf-file" | // CHECK-G0-OVER-SPLIT-NOT: "-split-dwarf-file" | ||||
// CHECK-G0-OVER-SPLIT-NOT: "-split-dwarf-output" | // CHECK-G0-OVER-SPLIT-NOT: "-split-dwarf-output" | ||||
// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -g0 -S -### %s 2> %t | // RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -g0 -S -### %s 2> %t | ||||
// RUN: FileCheck -check-prefix=CHECK-G0-OVER-SPLIT < %t %s | // RUN: FileCheck -check-prefix=CHECK-G0-OVER-SPLIT < %t %s | ||||
// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf=split -g0 -S -### %s 2> %t | // RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf=split -g0 -S -### %s 2> %t | ||||
// RUN: FileCheck -check-prefix=CHECK-G0-OVER-SPLIT < %t %s | // RUN: FileCheck -check-prefix=CHECK-G0-OVER-SPLIT < %t %s | ||||
// | // | ||||
// CHECK-G0-OVER-SPLIT-NOT: "-debug-info-kind | // CHECK-G0-OVER-SPLIT-NOT: "-debug-info-kind | ||||
// CHECK-G0-OVER-SPLIT-NOT: "-split-dwarf-file" | // CHECK-G0-OVER-SPLIT-NOT: "-split-dwarf-file" | ||||
// CHECK-G0-OVER-SPLIT-NOT: "-split-dwarf-output" | // CHECK-G0-OVER-SPLIT-NOT: "-split-dwarf-output" | ||||
// RUN: %clang -target x86_64-unknown-linux-gnu -g0 -gsplit-dwarf -S -### %s 2> %t | // RUN: %clang -target x86_64-unknown-linux-gnu -g0 -gsplit-dwarf -S -### %s 2> %t | ||||
// RUN: FileCheck -check-prefix=CHECK-SPLIT-OVER-G0 < %t %s | // RUN: FileCheck -check-prefix=CHECK-SPLIT-OVER-G0 < %t %s | ||||
// RUN: %clang -target x86_64-unknown-linux-gnu -g0 -gsplit-dwarf=split -S -### %s 2> %t | // RUN: %clang -target x86_64-unknown-linux-gnu -g0 -gsplit-dwarf=split -S -### %s 2> %t | ||||
// RUN: FileCheck -check-prefix=CHECK-SPLIT-OVER-G0 < %t %s | // RUN: FileCheck -check-prefix=CHECK-SPLIT-OVER-G0 < %t %s | ||||
// | // | ||||
// CHECK-SPLIT-OVER-G0: "-debug-info-kind=limited" | // CHECK-SPLIT-OVER-G0: "-debug-info-kind=constructor" | ||||
// CHECK-SPLIT-OVER-G0: "-split-dwarf-file" | // CHECK-SPLIT-OVER-G0: "-split-dwarf-file" | ||||
// CHECK-SPLIT-OVER-G0: "-split-dwarf-output" | // CHECK-SPLIT-OVER-G0: "-split-dwarf-output" |