diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-10-25 22:55:52 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-10-25 22:55:52 +0000 |
commit | a3926ec1957cd251aaa3bbaa830b99888006e22a (patch) | |
tree | aa4c8949c848a358c527253a78627ac9f1392c1c /clang/lib/CodeGen/CGBlocks.h | |
parent | 82d792958b64ed15ef6ff7b23e116b847880f953 (diff) | |
download | bcm5719-llvm-a3926ec1957cd251aaa3bbaa830b99888006e22a.tar.gz bcm5719-llvm-a3926ec1957cd251aaa3bbaa830b99888006e22a.zip |
Changing name of enum for block literal flags to represent
what it is meant for.
llvm-svn: 166734
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.h')
-rw-r--r-- | clang/lib/CodeGen/CGBlocks.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.h b/clang/lib/CodeGen/CGBlocks.h index e3fb1de96f1..912c21edc8d 100644 --- a/clang/lib/CodeGen/CGBlocks.h +++ b/clang/lib/CodeGen/CGBlocks.h @@ -47,7 +47,7 @@ namespace CodeGen { class CodeGenModule; class CGBlockInfo; -enum BlockFlag_t { +enum BlockLiteralFlags { BLOCK_HAS_COPY_DISPOSE = (1 << 25), BLOCK_HAS_CXX_OBJ = (1 << 26), BLOCK_IS_GLOBAL = (1 << 28), @@ -60,7 +60,7 @@ class BlockFlags { BlockFlags(uint32_t flags) : flags(flags) {} public: BlockFlags() : flags(0) {} - BlockFlags(BlockFlag_t flag) : flags(flag) {} + BlockFlags(BlockLiteralFlags flag) : flags(flag) {} uint32_t getBitMask() const { return flags; } bool empty() const { return flags == 0; } @@ -76,7 +76,7 @@ public: return (l.flags & r.flags); } }; -inline BlockFlags operator|(BlockFlag_t l, BlockFlag_t r) { +inline BlockFlags operator|(BlockLiteralFlags l, BlockLiteralFlags r) { return BlockFlags(l) | BlockFlags(r); } |