mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-16 23:26:05 +00:00

-dwarf-column-info is omitted if -gcodeview is specified for msvc targets at the moment, but since -gcodeview is an option that can be specified for any target, there's little reason to restrict this handling to msvc targets. This allows getting proper codeview debug info by passing -gcodeview for e.g. MinGW targets as well. Differential Revision: https://reviews.llvm.org/D46287 llvm-svn: 331807
16 lines
644 B
C
16 lines
644 B
C
// Check that -dwarf-column-info does not get 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: "-cc1"
|
|
// CHECK-NOT: "-dwarf-column-info"
|