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/status.h | |
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/status.h')
-rw-r--r-- | absl/status/status.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/status/status.h b/absl/status/status.h index dc37493a..d4f74140 100644 --- a/absl/status/status.h +++ b/absl/status/status.h @@ -427,7 +427,7 @@ inline StatusToStringMode& operator^=(StatusToStringMode& lhs, // Returned Status objects may not be ignored. status_internal.h has a forward // declaration of the form // class ABSL_MUST_USE_RESULT Status; -class Status final { +class ABSL_ATTRIBUTE_TRIVIAL_ABI Status final { public: // Constructors |