zig_llvm: include Debug Info Version even for CodeView

I mistakenly thought this was supposed to only be present for Dwarf.
This commit is contained in:
Andrew Kelley 2022-07-11 16:41:41 -07:00
parent 56f2e5c5bc
commit d789c68717

View File

@ -1134,6 +1134,7 @@ void ZigLLVMAddModuleDebugInfoFlag(LLVMModuleRef module) {
}
void ZigLLVMAddModuleCodeViewFlag(LLVMModuleRef module) {
unwrap(module)->addModuleFlag(Module::Warning, "Debug Info Version", DEBUG_METADATA_VERSION);
unwrap(module)->addModuleFlag(Module::Warning, "CodeView", 1);
}