Changeset View
Changeset View
Standalone View
Standalone View
clang/test/Driver/debug-options.c
Show First 20 Lines • Show All 268 Lines • ▼ Show 20 Lines | |||||
// GLIO_ONLY: "-debug-info-kind=line-directives-only" | // GLIO_ONLY: "-debug-info-kind=line-directives-only" | ||||
// GLIO_ONLY-NOT: "-dwarf-ext-refs" | // GLIO_ONLY-NOT: "-dwarf-ext-refs" | ||||
// | // | ||||
// GLIO_ONLY_DWARF2: "-cc1" | // GLIO_ONLY_DWARF2: "-cc1" | ||||
// GLIO_ONLY_DWARF2: "-debug-info-kind=line-directives-only" | // GLIO_ONLY_DWARF2: "-debug-info-kind=line-directives-only" | ||||
// GLIO_ONLY_DWARF2: "-dwarf-version=2" | // GLIO_ONLY_DWARF2: "-dwarf-version=2" | ||||
// | // | ||||
// G_ONLY: "-cc1" | // G_ONLY: "-cc1" | ||||
// G_ONLY: "-debug-info-kind=limited" | // G_ONLY: "-debug-info-kind=constructor" | ||||
// | // | ||||
// These tests assert that "-gline-tables-only" "-g" uses the latter, | // These tests assert that "-gline-tables-only" "-g" uses the latter, | ||||
// but otherwise not caring about the DebugInfoKind. | // but otherwise not caring about the DebugInfoKind. | ||||
// G_ONLY_DWARF2: "-cc1" | // G_ONLY_DWARF2: "-cc1" | ||||
// G_ONLY_DWARF2: "-debug-info-kind={{standalone|limited}}" | // G_ONLY_DWARF2: "-debug-info-kind={{standalone|constructor}}" | ||||
// G_ONLY_DWARF2: "-dwarf-version=2" | // G_ONLY_DWARF2: "-dwarf-version=2" | ||||
// | // | ||||
// G_STANDALONE: "-cc1" | // G_STANDALONE: "-cc1" | ||||
// G_STANDALONE: "-debug-info-kind=standalone" | // G_STANDALONE: "-debug-info-kind=standalone" | ||||
// G_LIMITED: "-cc1" | // G_LIMITED: "-cc1" | ||||
// G_LIMITED: "-debug-info-kind=limited" | // G_LIMITED: "-debug-info-kind=constructor" | ||||
// G_DWARF2: "-dwarf-version=2" | // G_DWARF2: "-dwarf-version=2" | ||||
// G_DWARF4: "-dwarf-version=4" | // G_DWARF4: "-dwarf-version=4" | ||||
// | // | ||||
// G_GDB: "-debugger-tuning=gdb" | // G_GDB: "-debugger-tuning=gdb" | ||||
// G_LLDB: "-debugger-tuning=lldb" | // G_LLDB: "-debugger-tuning=lldb" | ||||
// G_SCE: "-debugger-tuning=sce" | // G_SCE: "-debugger-tuning=sce" | ||||
// | // | ||||
// G_NOTUNING: "-cc1" | // G_NOTUNING: "-cc1" | ||||
Show All 37 Lines | |||||
// NOFDTS-NOT: "-mllvm" "-generate-type-units" | // NOFDTS-NOT: "-mllvm" "-generate-type-units" | ||||
// NOFDTSE-NOT: error: unsupported option '-fdebug-types-section' for target 'x86_64-apple-darwin' | // NOFDTSE-NOT: error: unsupported option '-fdebug-types-section' for target 'x86_64-apple-darwin' | ||||
// | // | ||||
// CI-NOT: "-gno-column-info" | // CI-NOT: "-gno-column-info" | ||||
// | // | ||||
// NOCI: "-gno-column-info" | // NOCI: "-gno-column-info" | ||||
// | // | ||||
// GEXTREFS: "-dwarf-ext-refs" "-fmodule-format=obj" | // GEXTREFS: "-dwarf-ext-refs" "-fmodule-format=obj" | ||||
// GEXTREFS: "-debug-info-kind={{standalone|limited}}" | // GEXTREFS: "-debug-info-kind={{standalone|constructor}}" | ||||
// RUN: not %clang -cc1 -debug-info-kind=watkind 2>&1 | FileCheck -check-prefix=BADSTRING1 %s | // RUN: not %clang -cc1 -debug-info-kind=watkind 2>&1 | FileCheck -check-prefix=BADSTRING1 %s | ||||
// BADSTRING1: error: invalid value 'watkind' in '-debug-info-kind=watkind' | // BADSTRING1: error: invalid value 'watkind' in '-debug-info-kind=watkind' | ||||
// RUN: not %clang -cc1 -debugger-tuning=gmodal 2>&1 | FileCheck -check-prefix=BADSTRING2 %s | // RUN: not %clang -cc1 -debugger-tuning=gmodal 2>&1 | FileCheck -check-prefix=BADSTRING2 %s | ||||
// BADSTRING2: error: invalid value 'gmodal' in '-debugger-tuning=gmodal' | // BADSTRING2: error: invalid value 'gmodal' in '-debugger-tuning=gmodal' | ||||
// RUN: %clang -### -fdebug-macro %s 2>&1 | FileCheck -check-prefix=MACRO %s | // RUN: %clang -### -fdebug-macro %s 2>&1 | FileCheck -check-prefix=MACRO %s | ||||
// RUN: %clang -### -fno-debug-macro %s 2>&1 | FileCheck -check-prefix=NOMACRO %s | // RUN: %clang -### -fno-debug-macro %s 2>&1 | FileCheck -check-prefix=NOMACRO %s | ||||
Show All 13 Lines |