Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions gcc/rust/util/rust-abi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ get_abi_from_string (const std::string &abi)
return Rust::ABI::SYSV64;
else if (abi.compare ("win64") == 0)
return Rust::ABI::WIN_64;
else if (abi.compare ("platform-intrinsic") == 0)
return Rust::ABI::PLATFORM_INTRINSIC;
else if (abi.compare ("unadjusted") == 0)
return Rust::ABI::UNADJUSTED;

return Rust::ABI::UNKNOWN;
}
Expand All @@ -66,6 +70,10 @@ get_string_from_abi (Rust::ABI abi)
return "sysv64";
case Rust::ABI::WIN_64:
return "win64";
case Rust::ABI::PLATFORM_INTRINSIC:
return "platform-intrinsic";
case Rust::ABI::UNADJUSTED:
return "unadjusted";

case Rust::ABI::UNKNOWN:
return "unknown";
Expand Down
4 changes: 3 additions & 1 deletion gcc/rust/util/rust-abi.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ enum ABI
STDCALL,
FASTCALL,
WIN_64,
SYSV64
SYSV64,
PLATFORM_INTRINSIC,
UNADJUSTED,
};

extern Rust::ABI get_abi_from_string (const std::string &abi);
Expand Down
Loading