aboutsummaryrefslogtreecommitdiff
path: root/src/comp
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-05-03 15:55:01 -0700
committerPatrick Walton <[email protected]>2011-05-03 15:55:01 -0700
commit6871c245a67fab222eccc2a21dcb620d11d3b0d0 (patch)
tree69fbc94f6f4d696f5a7eb69ba65028da09b15d02 /src/comp
parentrustc: Refactor metadata.Encode.* to not require a type abbreviation table if... (diff)
downloadrust-6871c245a67fab222eccc2a21dcb620d11d3b0d0.tar.xz
rust-6871c245a67fab222eccc2a21dcb620d11d3b0d0.zip
Rename the "llvm" API to "llvm-intrinsic"
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/front/parser.rs2
-rw-r--r--src/comp/pretty/pprust.rs1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs
index 3e8ca85a..4beb5afc 100644
--- a/src/comp/front/parser.rs
+++ b/src/comp/front/parser.rs
@@ -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")) {
+ } else if (_str.eq(t, "llvm-intrinsic")) {
abi = ast.native_abi_llvm;
} else {
p.err("unsupported abi: " + t);
diff --git a/src/comp/pretty/pprust.rs b/src/comp/pretty/pprust.rs
index 7ef91ce8..1f84e18a 100644
--- a/src/comp/pretty/pprust.rs
+++ b/src/comp/pretty/pprust.rs
@@ -229,6 +229,7 @@ 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");