Commit 6d679eb2bc

Andrew Kelley <andrew@ziglang.org>
2022-08-23 01:57:03
LLVM: update to DWARF version 5
clang-14 uses DWARF 5 as the default. Let's join them.
1 parent 5d2e9a1
Changed files (1)
src/zig_llvm.cpp
@@ -1130,7 +1130,7 @@ void ZigLLVMGetNativeTarget(ZigLLVM_ArchType *arch_type,
 
 void ZigLLVMAddModuleDebugInfoFlag(LLVMModuleRef module) {
     unwrap(module)->addModuleFlag(Module::Warning, "Debug Info Version", DEBUG_METADATA_VERSION);
-    unwrap(module)->addModuleFlag(Module::Warning, "Dwarf Version", 4);
+    unwrap(module)->addModuleFlag(Module::Warning, "Dwarf Version", 5);
 }
 
 void ZigLLVMAddModuleCodeViewFlag(LLVMModuleRef module) {