diff --git a/clang/lib/Driver/ToolChains/MSVC.h b/clang/lib/Driver/ToolChains/MSVC.h index 8f033de09bf6..c842773996ed 100644 --- a/clang/lib/Driver/ToolChains/MSVC.h +++ b/clang/lib/Driver/ToolChains/MSVC.h @@ -69,6 +69,10 @@ public: return llvm::DebuggerKind::Default; } + unsigned GetDefaultDwarfVersion() const override { + return 4; + } + enum class SubDirectoryType { Bin, Include, diff --git a/clang/test/CodeGen/dwarf-version.c b/clang/test/CodeGen/dwarf-version.c index b329556ae0d9..47025e241d13 100644 --- a/clang/test/CodeGen/dwarf-version.c +++ b/clang/test/CodeGen/dwarf-version.c @@ -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 | \