Revert "Rename the "llvm" API to "llvm-intrinsic"" due to tinderbox bustage

This reverts commit 6871c245a6.
This commit is contained in:
Patrick Walton 2011-05-03 17:49:58 -07:00
parent b81897d7e4
commit 2bc17adc29
3 changed files with 2 additions and 3 deletions

View file

@ -2013,7 +2013,7 @@ fn parse_item_native_mod(parser p) -> @ast.item {
if (_str.eq(t, "cdecl")) {
} else if (_str.eq(t, "rust")) {
abi = ast.native_abi_rust;
} else if (_str.eq(t, "llvm-intrinsic")) {
} else if (_str.eq(t, "llvm")) {
abi = ast.native_abi_llvm;
} else {
p.err("unsupported abi: " + t);

View file

@ -229,7 +229,6 @@ fn print_item(ps s, @ast.item item) {
wrd1(s, "native");
alt (nmod.abi) {
case (ast.native_abi_rust) {wrd1(s, "\"rust\"");}
case (ast.native_abi_llvm) {wrd1(s, "\"llvm-intrinsic\"");}
case (ast.native_abi_cdecl) {wrd1(s, "\"cdecl\"");}
}
wrd1(s, "mod");

View file

@ -2,7 +2,7 @@
// based on:
// http://shootout.alioth.debian.org/u32/benchmark.php?test=nbody&lang=java
native "llvm-intrinsic" mod llvm {
native "llvm" mod llvm {
fn sqrt(float n) -> float = "sqrt.f64";
}