
Column info is important for sampling PGO to generate/load profile file. On windows, it will be automatically added when using -gdwarf to generate profile file. It should also be generated when fprofile-sample-use= is used.
20 lines
881 B
C
20 lines
881 B
C
// Check that -gno-column-info gets added to the cc1 line:
|
|
// 1) When -gcodeview is present via the clang or clang++ driver
|
|
// 2) When /Z7 is present via the cl driver.
|
|
|
|
// RUN: %clang -### --target=x86_64-windows-msvc -c -g -gcodeview %s 2> %t1
|
|
// RUN: FileCheck < %t1 %s
|
|
// RUN: %clangxx -### --target=x86_64-windows-msvc -c -g -gcodeview %s 2> %t2
|
|
// RUN: FileCheck < %t2 %s
|
|
// RUN: %clangxx -### --target=x86_64-windows-gnu -c -g -gcodeview %s 2> %t2
|
|
// RUN: FileCheck < %t2 %s
|
|
// RUN: %clang_cl -### --target=x86_64-windows-msvc /c /Z7 -- %s 2> %t2
|
|
// RUN: FileCheck < %t2 %s
|
|
|
|
// CHECK: "-gno-column-info"
|
|
|
|
// RUN: %clang_cl -### /Z7 -gcolumn-info -- %s 2>&1 | FileCheck --check-prefix=COLUMN %s
|
|
// RUN: %clang_cl -### --target=x86_64-windows-msvc /Z7 -fprofile-sample-use=%S/Inputs/file.prof -- %s 2>&1 | FileCheck --check-prefix=COLUMN %s
|
|
|
|
// COLUMN-NOT: "-gno-column-info"
|