commit 6df8e4bca73309f2e340dbfa9031f1bb16a73bcc (tree)
parent d8b6fa9134e247658bb98155ba2e4243cd335b1b
Author: alexander <justin.b.alexander1@gmail.com>
Date: Sat, 29 Dec 2018 21:49:31 -0600
Add DIFlagStaticMember flag to functions.
Prevents LLVM from generating debug info for
struct member functions with a pointer as the
first parameter as though the first parameter
were the implicit "this" pointer from C++.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/zig_llvm.cpp b/src/zig_llvm.cpp
@@ -605,7 +605,7 @@ ZigLLVMDISubprogram *ZigLLVMCreateFunction(ZigLLVMDIBuilder *dibuilder, ZigLLVMD
reinterpret_cast<DIFile*>(file),
lineno,
di_sub_type,
- is_local_to_unit, is_definition, scope_line, DINode::FlagZero, is_optimized,
+ is_local_to_unit, is_definition, scope_line, DINode::FlagStaticMember, is_optimized,
nullptr,
reinterpret_cast<DISubprogram *>(decl_subprogram));
return reinterpret_cast<ZigLLVMDISubprogram*>(result);