File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -61,9 +61,8 @@ class LLVM_LIBRARY_VISIBILITY MSVCToolChain : public ToolChain {
61
61
// / formats, and to DWARF otherwise. Users can use -gcodeview and -gdwarf to
62
62
// / override the default.
63
63
llvm::codegenoptions::DebugInfoFormat getDefaultDebugFormat () const override {
64
- return getTriple ().isOSBinFormatMachO ()
65
- ? llvm::codegenoptions::DIF_DWARF
66
- : llvm::codegenoptions::DIF_CodeView;
64
+ return getTriple ().isOSBinFormatCOFF () ? llvm::codegenoptions::DIF_CodeView
65
+ : llvm::codegenoptions::DIF_DWARF;
67
66
}
68
67
69
68
// / Set the debugger tuning to "default", since we're definitely not tuning
Original file line number Diff line number Diff line change
1
+ // Check that basic use of win32-elf targets works.
2
+ // RUN: %clang -fsyntax-only -target x86_64-pc-win32-elf %s
3
+
4
+ // RUN: %clang -fsyntax-only -target x86_64-pc-win32-elf -g %s -### 2>&1 | FileCheck %s -check-prefix=DEBUG-INFO
5
+ // DEBUG-INFO: -dwarf-version={{.*}}
You can’t perform that action at this time.
0 commit comments