[cfe-commits] r166734 - /cfe/trunk/lib/CodeGen/CGBlocks.h
Fariborz Jahanian
fjahanian at apple.com
Thu Oct 25 15:55:52 PDT 2012
Author: fjahanian
Date: Thu Oct 25 17:55:52 2012
New Revision: 166734
URL: http://llvm.org/viewvc/llvm-project?rev=166734&view=rev
Log:
Changing name of enum for block literal flags to represent
what it is meant for.
Modified:
cfe/trunk/lib/CodeGen/CGBlocks.h
Modified: cfe/trunk/lib/CodeGen/CGBlocks.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBlocks.h?rev=166734&r1=166733&r2=166734&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGBlocks.h (original)
+++ cfe/trunk/lib/CodeGen/CGBlocks.h Thu Oct 25 17:55:52 2012
@@ -47,7 +47,7 @@
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 @@
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 @@
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);
}
More information about the cfe-commits
mailing list