Skip to content

Commit a2e2cba

Browse files
author
git apple-llvm automerger
committed
Merge commit 'cd7517859eef' from llvm.org/main into next
2 parents 8fc631c + cd75178 commit a2e2cba

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

clang/lib/Driver/ToolChains/MSVC.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ class LLVM_LIBRARY_VISIBILITY MSVCToolChain : public ToolChain {
6161
/// formats, and to DWARF otherwise. Users can use -gcodeview and -gdwarf to
6262
/// override the default.
6363
llvm::codegenoptions::DebugInfoFormat getDefaultDebugFormat() const override {
64-
return getTriple().isOSBinFormatCOFF() ? llvm::codegenoptions::DIF_CodeView
65-
: llvm::codegenoptions::DIF_DWARF;
64+
return getTriple().isOSBinFormatMachO()
65+
? llvm::codegenoptions::DIF_DWARF
66+
: llvm::codegenoptions::DIF_CodeView;
6667
}
6768

6869
/// Set the debugger tuning to "default", since we're definitely not tuning

clang/test/Misc/win32-elf.c

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)