Skip to content

Commit 6871c24

Browse files
committed
Rename the "llvm" API to "llvm-intrinsic"
1 parent e43729c commit 6871c24

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/comp/front/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2013,7 +2013,7 @@ fn parse_item_native_mod(parser p) -> @ast.item {
20132013
if (_str.eq(t, "cdecl")) {
20142014
} else if (_str.eq(t, "rust")) {
20152015
abi = ast.native_abi_rust;
2016-
} else if (_str.eq(t, "llvm")) {
2016+
} else if (_str.eq(t, "llvm-intrinsic")) {
20172017
abi = ast.native_abi_llvm;
20182018
} else {
20192019
p.err("unsupported abi: " + t);

src/comp/pretty/pprust.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ fn print_item(ps s, @ast.item item) {
229229
wrd1(s, "native");
230230
alt (nmod.abi) {
231231
case (ast.native_abi_rust) {wrd1(s, "\"rust\"");}
232+
case (ast.native_abi_llvm) {wrd1(s, "\"llvm-intrinsic\"");}
232233
case (ast.native_abi_cdecl) {wrd1(s, "\"cdecl\"");}
233234
}
234235
wrd1(s, "mod");

src/test/bench/shootout/nbody.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// based on:
33
// http://shootout.alioth.debian.org/u32/benchmark.php?test=nbody&lang=java
44

5-
native "llvm" mod llvm {
5+
native "llvm-intrinsic" mod llvm {
66
fn sqrt(float n) -> float = "sqrt.f64";
77
}
88

0 commit comments

Comments
 (0)