aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2023-04-14 11:57:21 +0200
committerThomas Schwinge <thomas@codesourcery.com>2023-04-14 11:57:21 +0200
commit4e95a9117487c07f876f913499cb9954b6cd7d54 (patch)
tree631fa9525e861db8e08941914705bfd94c981c75 /gcc/rust/backend
parent41c7e1d0a707f97327f097022e9e6fa7f6f13533 (diff)
downloadgcc-4e95a9117487c07f876f913499cb9954b6cd7d54.zip
gcc-4e95a9117487c07f876f913499cb9954b6cd7d54.tar.gz
gcc-4e95a9117487c07f876f913499cb9954b6cd7d54.tar.bz2
Revert "Rust: Make 'tree'-level 'MAIN_NAME_P' work"
This reverts commit 41c7e1d0a707f97327f097022e9e6fa7f6f13533.
Diffstat (limited to 'gcc/rust/backend')
-rw-r--r--gcc/rust/backend/rust-compile-base.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/gcc/rust/backend/rust-compile-base.cc b/gcc/rust/backend/rust-compile-base.cc
index 9b8a793..9650d1a 100644
--- a/gcc/rust/backend/rust-compile-base.cc
+++ b/gcc/rust/backend/rust-compile-base.cc
@@ -523,9 +523,6 @@ HIRCompileBase::compile_function (
// we don't mangle the main fn since we haven't implemented the main shim
bool is_main_fn = fn_name.compare ("main") == 0;
- if (is_main_fn)
- /* So that 'MAIN_NAME_P' works. */
- ir_symbol_name = fn_name;
std::string asm_name = fn_name;
unsigned int flags = 0;