diff options
author | Pavel Labath <pavel@labath.sk> | 2022-03-09 13:07:33 +0100 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2022-03-11 11:11:55 +0100 |
commit | 161bddf3af09aa883c9414d793de79c89e51636a (patch) | |
tree | 8a8f32e43e885464bbbe8636eef01b208d0534f1 /llvm/lib/Support/MemoryBuffer.cpp | |
parent | aeeb1199b4b4d33b823bae15ca969527c89676cf (diff) | |
download | llvm-161bddf3af09aa883c9414d793de79c89e51636a.zip llvm-161bddf3af09aa883c9414d793de79c89e51636a.tar.gz llvm-161bddf3af09aa883c9414d793de79c89e51636a.tar.bz2 |
[ADT] Make BitmaskEnum operations constant expressions
This avoids runtime initialization (a global constructor) whenever they appear
in the initializer.
The patch just adds the constexpr keyword to a couple of functions.
Differential Revision: https://reviews.llvm.org/D121281
Diffstat (limited to 'llvm/lib/Support/MemoryBuffer.cpp')
0 files changed, 0 insertions, 0 deletions