aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/ASanStackFrameLayout.cpp
diff options
context:
space:
mode:
authorAlex Brachet <abrachet@google.com>2023-06-15 23:37:03 +0000
committerCaslyn Tonelli <caslyn@google.com>2023-06-16 15:46:32 +0000
commit61c9052cec10a80f9a48d2da9e443629089c9a88 (patch)
treea78d739b8c0f36dfdf4d0c0ce8ca221409a55d0c /llvm/lib/Transforms/Utils/ASanStackFrameLayout.cpp
parent501405f1d5f027717ab6866aa1dece2d384791cc (diff)
downloadllvm-61c9052cec10a80f9a48d2da9e443629089c9a88.zip
llvm-61c9052cec10a80f9a48d2da9e443629089c9a88.tar.gz
llvm-61c9052cec10a80f9a48d2da9e443629089c9a88.tar.bz2
[libc] Add LIBC_INLINE_VAR for inline variables
These are the only variables I could find that use LIBC_INLINE. Note, these are namespace scoped constexpr so local linkage is implied. inline is useful here to silence clang's unused-const-variable variable. For Fuchsia, the distinction between LIBC_INLINE and LIBC_INLINE_VAR is helpful because we define LIBC_INLINE as `[[gnu::always_inline]] inline` when building with gcc. This isn't meaningful on variables. Alternatively, we could make these variables simply constexpr and also add `[[maybe_unused]]` Reviewed By: sivachandra, mcgrathr Differential Revision: https://reviews.llvm.org/D152951
Diffstat (limited to 'llvm/lib/Transforms/Utils/ASanStackFrameLayout.cpp')
0 files changed, 0 insertions, 0 deletions