We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6288f36 commit cd75178Copy full SHA for cd75178
clang/lib/Driver/ToolChains/MSVC.h
@@ -61,8 +61,9 @@ class LLVM_LIBRARY_VISIBILITY MSVCToolChain : public ToolChain {
61
/// formats, and to DWARF otherwise. Users can use -gcodeview and -gdwarf to
62
/// override the default.
63
llvm::codegenoptions::DebugInfoFormat getDefaultDebugFormat() const override {
64
- return getTriple().isOSBinFormatCOFF() ? llvm::codegenoptions::DIF_CodeView
65
- : llvm::codegenoptions::DIF_DWARF;
+ return getTriple().isOSBinFormatMachO()
+ ? llvm::codegenoptions::DIF_DWARF
66
+ : llvm::codegenoptions::DIF_CodeView;
67
}
68
69
/// Set the debugger tuning to "default", since we're definitely not tuning
clang/test/Misc/win32-elf.c
0 commit comments