diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-08-16 01:11:10 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-08-16 01:11:10 -0700 |
| commit | 2f599b655b81004f101773b3b35dc112c0d84b72 (patch) | |
| tree | a296b4086ee0d829cab7e7d0cb7488ebf492a622 /src/codegen | |
| parent | a69b86003c737aeb42f015bb9225b3900b932add (diff) | |
| download | zig-2f599b655b81004f101773b3b35dc112c0d84b72.tar.gz zig-2f599b655b81004f101773b3b35dc112c0d84b72.zip | |
update src/ to LLVM 13 rc1 API
Diffstat (limited to 'src/codegen')
| -rw-r--r-- | src/codegen/llvm.zig | 3 | ||||
| -rw-r--r-- | src/codegen/llvm/bindings.zig | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig index 4f9a24f80c..2b678b0a69 100644 --- a/src/codegen/llvm.zig +++ b/src/codegen/llvm.zig @@ -31,6 +31,7 @@ pub fn targetTriple(allocator: *Allocator, target: std.Target) ![:0]u8 { .bpfeb => "bpfeb", .csky => "csky", .hexagon => "hexagon", + .m68k => "m68k", .mips => "mips", .mipsel => "mipsel", .mips64 => "mips64", @@ -140,6 +141,7 @@ pub fn targetTriple(allocator: *Allocator, target: std.Target) ![:0]u8 { .musl => "musl", .musleabi => "musleabi", .musleabihf => "musleabihf", + .muslx32 => "muslx32", .msvc => "msvc", .itanium => "itanium", .cygnus => "cygnus", @@ -1463,6 +1465,7 @@ pub const FuncGen = struct { llvm.Bool.fromBool(is_volatile), .False, .ATT, + .False, ); return self.builder.buildCall( asm_fn, diff --git a/src/codegen/llvm/bindings.zig b/src/codegen/llvm/bindings.zig index da02e56ac8..fc97dfb81f 100644 --- a/src/codegen/llvm/bindings.zig +++ b/src/codegen/llvm/bindings.zig @@ -259,6 +259,7 @@ extern fn LLVMGetInlineAsm( HasSideEffects: Bool, IsAlignStack: Bool, Dialect: InlineAsmDialect, + CanThrow: Bool, ) *const Value; pub const functionType = LLVMFunctionType; @@ -840,6 +841,7 @@ pub const ArchType = enum(c_int) { bpfeb, csky, hexagon, + m68k, mips, mipsel, mips64, |
