diff options
| author | antlilja <liljaanton2001@gmail.com> | 2024-03-02 15:19:09 +0100 |
|---|---|---|
| committer | antlilja <liljaanton2001@gmail.com> | 2024-03-02 20:53:06 +0100 |
| commit | e2345f006ffcd17e41aa73b27890044a0e1f2218 (patch) | |
| tree | 7f220ca6cdd8bb06668d6d3196583e2eb915b347 /src/codegen | |
| parent | 9d500bda2d09fe67c39ee98067c1e53c58adbd5e (diff) | |
| download | zig-e2345f006ffcd17e41aa73b27890044a0e1f2218.tar.gz zig-e2345f006ffcd17e41aa73b27890044a0e1f2218.zip | |
LLVM: Add enableBrokenDebugInfoCheck and getBrokenDebugInfo
These functions allows the caller to find out wether the context
encounters broken debug info or not.
Diffstat (limited to 'src/codegen')
| -rw-r--r-- | src/codegen/llvm/bindings.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/codegen/llvm/bindings.zig b/src/codegen/llvm/bindings.zig index affadef882..ee87aef6ac 100644 --- a/src/codegen/llvm/bindings.zig +++ b/src/codegen/llvm/bindings.zig @@ -37,6 +37,12 @@ pub const Context = opaque { pub const setOptBisectLimit = ZigLLVMSetOptBisectLimit; extern fn ZigLLVMSetOptBisectLimit(C: *Context, limit: c_int) void; + + pub const enableBrokenDebugInfoCheck = ZigLLVMEnableBrokenDebugInfoCheck; + extern fn ZigLLVMEnableBrokenDebugInfoCheck(C: *Context) void; + + pub const getBrokenDebugInfo = ZigLLVMGetBrokenDebugInfo; + extern fn ZigLLVMGetBrokenDebugInfo(C: *Context) bool; }; pub const Module = opaque { |
