diff options
author | Abseil Team <absl-team@google.com> | 2023-10-05 21:00:32 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-10-05 21:01:49 -0700 |
commit | 9c2582eaee3dd785da65e71b04fd8036c8ee79ac (patch) | |
tree | aee3ccc17ec51e78d36310f2f7db18fca3437a65 /absl/status/internal | |
parent | ceea796f1d01b31f2b09cacfc217333083253121 (diff) |
Mark absl::Status as ABSL_ATTRIBUTE_TRIVIAL_ABI
This should make it more efficient to pass absl::Status parameters and return values, allowing them to be passed in a register.
PiperOrigin-RevId: 571213728
Change-Id: I2a0183aedc08c270d0af0e7a30a07590ea116896
Diffstat (limited to 'absl/status/internal')
-rw-r--r-- | absl/status/internal/status_internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/absl/status/internal/status_internal.h b/absl/status/internal/status_internal.h index e91fa4f2..7655709b 100644 --- a/absl/status/internal/status_internal.h +++ b/absl/status/internal/status_internal.h @@ -37,9 +37,9 @@ ABSL_NAMESPACE_BEGIN // TODO(b/176172494): ABSL_MUST_USE_RESULT should expand to the more strict // [[nodiscard]]. For now, just use [[nodiscard]] directly when it is available. #if ABSL_HAVE_CPP_ATTRIBUTE(nodiscard) -class [[nodiscard]] Status; +class [[nodiscard]] ABSL_ATTRIBUTE_TRIVIAL_ABI Status; #else -class ABSL_MUST_USE_RESULT Status; +class ABSL_MUST_USE_RESULT ABSL_ATTRIBUTE_TRIVIAL_ABI Status; #endif ABSL_NAMESPACE_END } // namespace absl |