LLVM: update to DWARF version 5

clang-14 uses DWARF 5 as the default. Let's join them.
This commit is contained in:
Andrew Kelley 2022-08-22 16:57:03 -07:00
parent 5d2e9a1244
commit 6d679eb2bc

View File

@ -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) {