aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/llvm
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2025-02-05 11:41:39 +0100
committerAlex Rønne Petersen <alex@alexrp.com>2025-04-04 06:08:09 +0200
commit8ea2e1ded522ae972fc201ca52cbc6e752c1d405 (patch)
tree7cca61207974e9bc86422122c2c02c183cdfd242 /src/codegen/llvm
parent156ab8750056c3ff440af0937806d8cdb2623816 (diff)
downloadzig-8ea2e1ded522ae972fc201ca52cbc6e752c1d405.tar.gz
zig-8ea2e1ded522ae972fc201ca52cbc6e752c1d405.zip
compiler: Updates for LLVM/Clang 20 API changes.
Diffstat (limited to 'src/codegen/llvm')
-rw-r--r--src/codegen/llvm/bindings.zig10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/codegen/llvm/bindings.zig b/src/codegen/llvm/bindings.zig
index a146e2a883..3c0782397e 100644
--- a/src/codegen/llvm/bindings.zig
+++ b/src/codegen/llvm/bindings.zig
@@ -90,7 +90,7 @@ pub const TargetMachine = opaque {
time_report: bool,
tsan: bool,
sancov: bool,
- lto: bool,
+ lto: LtoPhase,
allow_fast_isel: bool,
asm_filename: ?[*:0]const u8,
bin_filename: ?[*:0]const u8,
@@ -98,6 +98,14 @@ pub const TargetMachine = opaque {
bitcode_filename: ?[*:0]const u8,
coverage: Coverage,
+ pub const LtoPhase = enum(c_int) {
+ None,
+ ThinPreLink,
+ ThinPostLink,
+ FullPreLink,
+ FullPostLink,
+ };
+
pub const Coverage = extern struct {
CoverageType: Coverage.Type,
IndirectCalls: bool,