Skip to content

Commit

Permalink
Renamed WIN64 to WIN_64
Browse files Browse the repository at this point in the history
Fixes issue #2768

gcc/rust/ChangeLog:

	* backend/rust-compile-base.cc (HIRCompileBase::setup_abi_options):
	Renamed `WIN64` to `WIN_64`
	* util/rust-abi.cc (get_abi_from_string): Likewise
	(get_string_from_abi): Likewise
	* util/rust-abi.h (enum ABI): Likewise

Signed-off-by: Kushal Pal <[email protected]>
  • Loading branch information
braw-lee authored and philberty committed Dec 11, 2023
1 parent 5e3a875 commit 3589329
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gcc/rust/backend/rust-compile-base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ HIRCompileBase::setup_abi_options (tree fndecl, ABI abi)

break;

case Rust::ABI::WIN64:
case Rust::ABI::WIN_64:
abi_tree = get_identifier ("ms_abi");

break;
Expand Down
4 changes: 2 additions & 2 deletions gcc/rust/util/rust-abi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ get_abi_from_string (const std::string &abi)
else if (abi.compare ("sysv64") == 0)
return Rust::ABI::SYSV64;
else if (abi.compare ("win64") == 0)
return Rust::ABI::WIN64;
return Rust::ABI::WIN_64;

return Rust::ABI::UNKNOWN;
}
Expand All @@ -64,7 +64,7 @@ get_string_from_abi (Rust::ABI abi)
return "fastcall";
case Rust::ABI::SYSV64:
return "sysv64";
case Rust::ABI::WIN64:
case Rust::ABI::WIN_64:
return "win64";

case Rust::ABI::UNKNOWN:
Expand Down
2 changes: 1 addition & 1 deletion gcc/rust/util/rust-abi.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ enum ABI
CDECL,
STDCALL,
FASTCALL,
WIN64,
WIN_64,
SYSV64
};

Expand Down

0 comments on commit 3589329

Please sign in to comment.