diff options
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | lib/CodeGen/CodeGenModule.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index e79d18990d..020f74cddd 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/lib/CodeGen/CodeGenModule.h @@ -128,9 +128,10 @@ class CodeGenModule { llvm::Constant *NSConcreteStackBlock; const llvm::Type *BlockDescriptorType; - const llvm::Type * GenericBlockLiteralType; + const llvm::Type *GenericBlockLiteralType; struct { int GlobalUniqueCount; + int DescriptorUniqueCount; } Block; std::vector<llvm::Function *> BuiltinFunctions; @@ -147,6 +148,7 @@ public: llvm::Constant *getNSConcreteGlobalBlock(); llvm::Constant *getNSConcreteStackBlock(); int getGlobalUniqueCount() { return ++Block.GlobalUniqueCount; } + int getDescriptorUniqueCount() { return ++Block.DescriptorUniqueCount; } const llvm::Type *getBlockDescriptorType(); const llvm::Type *getGenericBlockLiteralType(); |