File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ class LLVM_LIBRARY_VISIBILITY HLSLToolChain : public ToolChain {
52
52
static std::optional<std::string> parseTargetProfile (StringRef TargetProfile);
53
53
bool requiresValidation (llvm::opt::DerivedArgList &Args) const ;
54
54
55
+ // Set default DWARF version to 4 for DXIL uses version 4.
56
+ unsigned GetDefaultDwarfVersion () const override { return 4 ; }
57
+
55
58
private:
56
59
mutable std::unique_ptr<tools::hlsl::Validator> Validator;
57
60
};
Original file line number Diff line number Diff line change 11
11
// CHECK: "-cc1"
12
12
// CHECK-CV-SAME: -gcodeview
13
13
// CHECK-SAME: "-debug-info-kind=constructor"
14
- // CHECK-DWARF-SAME: -dwarf-version
14
+ // Make sure dwarf-version is 4.
15
+ // CHECK-DWARF-SAME: -dwarf-version=4
You can’t perform that action at this time.
0 commit comments