aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/util/rust-abi.cc
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-10-12 12:26:24 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2023-02-21 12:36:33 +0100
commit2d7661e76e1276b3661502022ecee2861d040026 (patch)
tree50537e49c5b8c9097b23e5b1c8cfaf07dfbe4919 /gcc/rust/util/rust-abi.cc
parentf49e252824131e2c31de372d3155a458415bbe98 (diff)
downloadgcc-2d7661e76e1276b3661502022ecee2861d040026.zip
gcc-2d7661e76e1276b3661502022ecee2861d040026.tar.gz
gcc-2d7661e76e1276b3661502022ecee2861d040026.tar.bz2
gccrs: Add ABI mappings for rust-call to map to ABI::RUST
gcc/rust/ChangeLog: * util/rust-abi.cc (get_abi_from_string): Add missing "rust-call" possibility for ABI variant.
Diffstat (limited to 'gcc/rust/util/rust-abi.cc')
-rw-r--r--gcc/rust/util/rust-abi.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/util/rust-abi.cc b/gcc/rust/util/rust-abi.cc
index 6477c37..36abb21 100644
--- a/gcc/rust/util/rust-abi.cc
+++ b/gcc/rust/util/rust-abi.cc
@@ -23,6 +23,8 @@ get_abi_from_string (const std::string &abi)
{
if (abi.compare ("rust") == 0)
return Rust::ABI::RUST;
+ else if (abi.compare ("rust-call") == 0)
+ return Rust::ABI::RUST;
else if (abi.compare ("rust-intrinsic") == 0)
return Rust::ABI::INTRINSIC;
else if (abi.compare ("C") == 0)