aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-base.h
diff options
context:
space:
mode:
authorliushuyu <liushuyu011@gmail.com>2022-04-21 17:30:52 -0600
committerliushuyu <liushuyu011@gmail.com>2022-04-21 17:30:52 -0600
commit16730054de50fa613b86addd9cc4d737cfb7caf8 (patch)
treed2a171302353b371101bd97f7cff42d7e50072c0 /gcc/rust/backend/rust-compile-base.h
parent243ef0dfe713a9fc8d4d80feb488a58b2639f39f (diff)
downloadgcc-16730054de50fa613b86addd9cc4d737cfb7caf8.zip
gcc-16730054de50fa613b86addd9cc4d737cfb7caf8.tar.gz
gcc-16730054de50fa613b86addd9cc4d737cfb7caf8.tar.bz2
backend: handle cold attribute
Diffstat (limited to 'gcc/rust/backend/rust-compile-base.h')
-rw-r--r--gcc/rust/backend/rust-compile-base.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/rust/backend/rust-compile-base.h b/gcc/rust/backend/rust-compile-base.h
index c7f7f40..68a3994 100644
--- a/gcc/rust/backend/rust-compile-base.h
+++ b/gcc/rust/backend/rust-compile-base.h
@@ -82,6 +82,9 @@ protected:
static void handle_inline_attribute_on_fndecl (tree fndecl,
const AST::Attribute &attr);
+ static void handle_cold_attribute_on_fndecl (tree fndecl,
+ const AST::Attribute &attr);
+
static void handle_must_use_attribute_on_fndecl (tree fndecl,
const AST::Attribute &attr);