diff options
| author | Graydon Hoare <[email protected]> | 2010-06-24 19:21:40 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-06-24 19:21:40 -0700 |
| commit | 72c6c60d80cdfe63af5046a1a98549f0515734f2 (patch) | |
| tree | 6e2691b393b095badc6ff4f309a9ca18263599e5 /src/boot/util | |
| parent | Factor out some trans bits. (diff) | |
| download | rust-72c6c60d80cdfe63af5046a1a98549f0515734f2.tar.xz rust-72c6c60d80cdfe63af5046a1a98549f0515734f2.zip | |
Add intrinsic calling convention.
Diffstat (limited to 'src/boot/util')
| -rw-r--r-- | src/boot/util/common.ml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/boot/util/common.ml b/src/boot/util/common.ml index f33a6ea1..ad784877 100644 --- a/src/boot/util/common.ml +++ b/src/boot/util/common.ml @@ -105,6 +105,7 @@ type ty_param_idx = int type nabi_conv = CONV_rust | CONV_cdecl + | CONV_intrinsic ;; type nabi = { nabi_indirect: bool; @@ -115,6 +116,7 @@ let string_to_conv (a:string) : nabi_conv option = match a with "cdecl" -> Some CONV_cdecl | "rust" -> Some CONV_rust + | "intrinsic" -> Some CONV_intrinsic | _ -> None (* FIXME: remove this when native items go away. *) |