
This change allows `-fexperimental-assignment-tracking` to be negated using the negative equivalent `-fno-experimental-assignment-tracking`, and fixes the flag so that the default behaviour can be changed (currently the default is still false / disabled). Reviewed By: StephenTozer Differential Revision: https://reviews.llvm.org/D142029
25 lines
1.0 KiB
C++
25 lines
1.0 KiB
C++
//// Explicitly enabled:
|
|
// RUN: %clang_cc1 -triple x86_64-none-linux-gnu -debug-info-kind=standalone -O0 \
|
|
// RUN: -emit-llvm -fexperimental-assignment-tracking %s -o - \
|
|
// RUN: | FileCheck %s --check-prefixes=ENABLE
|
|
//// Disabled by default:
|
|
// RUN: %clang_cc1 -triple x86_64-none-linux-gnu -debug-info-kind=standalone -O0 \
|
|
// RUN: -emit-llvm %s -o - \
|
|
// RUN: | FileCheck %s --check-prefixes=DISABLE
|
|
//// Explicitly disabled:
|
|
// RUN: %clang_cc1 -triple x86_64-none-linux-gnu -debug-info-kind=standalone -O0 \
|
|
// RUN: -emit-llvm %s -o - -fno-experimental-assignment-tracking \
|
|
// RUN: | FileCheck %s --check-prefixes=DISABLE
|
|
|
|
// Check some assignment-tracking stuff appears in the output when the flag
|
|
// -fexperimental-assignment-tracking is used, that it doesn't when
|
|
// -fno-experimental-assignment-tracking is used or neither flag is specified.
|
|
|
|
// ENABLE: DIAssignID
|
|
// ENABLE: dbg.assign
|
|
|
|
// DISABLE-NOT: DIAssignID
|
|
// DISABLE-NOT: dbg.assign
|
|
|
|
void fun(int a) {}
|