Skip to content

Commit cd75178

Browse files
committed
Revert "[Win32][ELF] Make CodeView a DebugInfoFormat only for COFF format (#87149)"
This reverts commit 4b25053. There're failures in some target.
1 parent 6288f36 commit cd75178

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

clang/lib/Driver/ToolChains/MSVC.h

+3-2
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

-5
This file was deleted.

0 commit comments

Comments
 (0)