File tree Expand file tree Collapse file tree 4 files changed +4
-3
lines changed Expand file tree Collapse file tree 4 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: e43729ccf2577fad114107a336099da75eff0ded
2
+ refs/heads/master: 6871c245a67fab222eccc2a21dcb620d11d3b0d0
Original file line number Diff line number Diff line change @@ -2013,7 +2013,7 @@ fn parse_item_native_mod(parser p) -> @ast.item {
2013
2013
if ( _str. eq ( t, "cdecl" ) ) {
2014
2014
} else if ( _str. eq ( t, "rust" ) ) {
2015
2015
abi = ast. native_abi_rust ;
2016
- } else if ( _str. eq ( t, "llvm" ) ) {
2016
+ } else if ( _str. eq ( t, "llvm-intrinsic " ) ) {
2017
2017
abi = ast. native_abi_llvm ;
2018
2018
} else {
2019
2019
p. err ( "unsupported abi: " + t) ;
Original file line number Diff line number Diff line change @@ -229,6 +229,7 @@ fn print_item(ps s, @ast.item item) {
229
229
wrd1 ( s, "native" ) ;
230
230
alt ( nmod. abi ) {
231
231
case ( ast. native_abi_rust ) { wrd1 ( s, "\" rust\" " ) ; }
232
+ case ( ast. native_abi_llvm ) { wrd1 ( s, "\" llvm-intrinsic\" " ) ; }
232
233
case ( ast. native_abi_cdecl ) { wrd1 ( s, "\" cdecl\" " ) ; }
233
234
}
234
235
wrd1 ( s, "mod" ) ;
Original file line number Diff line number Diff line change 2
2
// based on:
3
3
// http://shootout.alioth.debian.org/u32/benchmark.php?test=nbody&lang=java
4
4
5
- native "llvm" mod llvm {
5
+ native "llvm-intrinsic " mod llvm {
6
6
fn sqrt( float n) -> float = "sqrt.f64" ;
7
7
}
8
8
You can’t perform that action at this time.
0 commit comments