Move DescriptorUniqueCount into CGM.
llvm-svn: 64481
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index e79d189..020f74c 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -128,9 +128,10 @@
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 @@
llvm::Constant *getNSConcreteGlobalBlock();
llvm::Constant *getNSConcreteStackBlock();
int getGlobalUniqueCount() { return ++Block.GlobalUniqueCount; }
+ int getDescriptorUniqueCount() { return ++Block.DescriptorUniqueCount; }
const llvm::Type *getBlockDescriptorType();
const llvm::Type *getGenericBlockLiteralType();