aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2018-12-14 13:51:20 +0000
committerPavel Labath <pavel@labath.sk>2018-12-14 13:51:20 +0000
commitb3ce98ac7c650c62a724611e2b7a27213cf1bcdc (patch)
tree4d70671ecaabd9f8464a58b30d61f25faa2aed16 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent941ce02deb3911b429387e2b97d270de4c257732 (diff)
downloadllvm-b3ce98ac7c650c62a724611e2b7a27213cf1bcdc.zip
llvm-b3ce98ac7c650c62a724611e2b7a27213cf1bcdc.tar.gz
llvm-b3ce98ac7c650c62a724611e2b7a27213cf1bcdc.tar.bz2
Mark Permissions as a bitmask enum
this allows one to use bitwise operators on the variables of this type without complicated casting. The gotcha here is that the combinations of these enums were being used in some constexpr contexts such as case labels (case ePermissionsWritable | ePermissionsExecutable:), which is not possible if the user-defined operator| is not constexpr. So, this commit also marks these operators as constexpr. I am committing this as a small standalone patch so it can be easily reverted if some compiler has an issue with this. llvm-svn: 349149
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions