diff options
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | lib/CodeGen/CodeGenModule.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index 4b1a06edc5..0d9caaa95d 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/lib/CodeGen/CodeGenModule.h @@ -129,6 +129,9 @@ class CodeGenModule { const llvm::Type *BlockDescriptorType; const llvm::Type * GenericBlockLiteralType; + struct { + int GlobalUniqueCount; + } Block; std::vector<llvm::Function *> BuiltinFunctions; public: @@ -142,7 +145,7 @@ public: void Release(); llvm::Constant *getNSConcreteGlobalBlock(); - + int getGlobalUniqueCount() { return ++Block.GlobalUniqueCount; } const llvm::Type *getBlockDescriptorType(); const llvm::Type *getGenericBlockLiteralType(); |