aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-08-22 16:57:03 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-08-22 16:57:18 -0700
commit6d679eb2bcbe76e389c02e0bb4d4c4feb2847783 (patch)
treed19e90ac3a36cc1e369b58c6eba4c5aa9a0938f9
parent5d2e9a12443e7f6aae1e9289f15b02f85be4bb32 (diff)
downloadzig-6d679eb2bcbe76e389c02e0bb4d4c4feb2847783.tar.gz
zig-6d679eb2bcbe76e389c02e0bb4d4c4feb2847783.zip
LLVM: update to DWARF version 5
clang-14 uses DWARF 5 as the default. Let's join them.
-rw-r--r--src/zig_llvm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zig_llvm.cpp b/src/zig_llvm.cpp
index 52c202fded..e03d26d7c4 100644
--- a/src/zig_llvm.cpp
+++ b/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) {