Default to DWARFv4 on Windows

This commit is contained in:
David Blaikie 2022-01-26 18:00:43 -08:00
parent eee97f1617
commit 9c62728610
2 changed files with 6 additions and 2 deletions

View File

@ -69,6 +69,10 @@ public:
return llvm::DebuggerKind::Default;
}
unsigned GetDefaultDwarfVersion() const override {
return 4;
}
enum class SubDirectoryType {
Bin,
Include,

View File

@ -28,10 +28,10 @@
// RUN: | FileCheck %s --check-prefixes=NODWARF,CODEVIEW
// Explicitly request DWARF.
// RUN: %clang -target i686-pc-windows-msvc -gdwarf -S -emit-llvm -o - %s \
// RUN: | FileCheck %s --check-prefixes=VER5,NOCODEVIEW
// RUN: | FileCheck %s --check-prefixes=VER4,NOCODEVIEW
// Explicitly request both.
// RUN: %clang -target i686-pc-windows-msvc -gdwarf -gcodeview -S -emit-llvm -o - %s \
// RUN: | FileCheck %s --check-prefixes=VER5,CODEVIEW
// RUN: | FileCheck %s --check-prefixes=VER4,CODEVIEW
// RUN: %clang -target powerpc-ibm-aix-xcoff -g -S -emit-llvm -o - %s | \
// RUN: FileCheck %s --check-prefix=VER3
// RUN: %clang -target powerpc-ibm-aix-xcoff -gdwarf-2 -S -emit-llvm -o - %s | \