compiler: Updates for LLVM/Clang 20 API changes.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user