Skip to content

Commit 3589329

Browse files
braw-leephilberty
authored andcommitted
Renamed WIN64 to WIN_64
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 <kushalpal109@gmail.com>
1 parent 5e3a875 commit 3589329

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

gcc/rust/backend/rust-compile-base.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ HIRCompileBase::setup_abi_options (tree fndecl, ABI abi)
463463

464464
break;
465465

466-
case Rust::ABI::WIN64:
466+
case Rust::ABI::WIN_64:
467467
abi_tree = get_identifier ("ms_abi");
468468

469469
break;

gcc/rust/util/rust-abi.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ get_abi_from_string (const std::string &abi)
4040
else if (abi.compare ("sysv64") == 0)
4141
return Rust::ABI::SYSV64;
4242
else if (abi.compare ("win64") == 0)
43-
return Rust::ABI::WIN64;
43+
return Rust::ABI::WIN_64;
4444

4545
return Rust::ABI::UNKNOWN;
4646
}
@@ -64,7 +64,7 @@ get_string_from_abi (Rust::ABI abi)
6464
return "fastcall";
6565
case Rust::ABI::SYSV64:
6666
return "sysv64";
67-
case Rust::ABI::WIN64:
67+
case Rust::ABI::WIN_64:
6868
return "win64";
6969

7070
case Rust::ABI::UNKNOWN:

gcc/rust/util/rust-abi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ enum ABI
3030
CDECL,
3131
STDCALL,
3232
FASTCALL,
33-
WIN64,
33+
WIN_64,
3434
SYSV64
3535
};
3636

0 commit comments

Comments
 (0)