fix dwarf language code

This commit is contained in:
Li Jie
2024-09-14 10:13:13 +08:00
parent c06c96bc1f
commit 3d9dca47b8

View File

@@ -57,7 +57,7 @@ type CompilationUnit = *aCompilationUnit
func (b diBuilder) createCompileUnit(filename, dir string) CompilationUnit {
return &aCompilationUnit{ll: b.di.CreateCompileUnit(llvm.DICompileUnit{
Language: llvm.DW_LANG_Go,
Language: llvm.DW_LANG_Go - 1, // strange, but it works
File: filename,
Dir: dir,
Producer: "LLGo",