aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-02-13 19:36:03 +0000
committerMike Stump <mrs@apple.com>2009-02-13 19:36:03 +0000
commit324699105567f2948db316c3a3dc4c1d38a3657e (patch)
tree4c2cd7e205b47af061bce25568673a86e9aa72fe /lib/CodeGen/CodeGenModule.h
parent05db4278ecd193edcff63fb8c54818226fceaad2 (diff)
Move DescriptorUniqueCount into CGM.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64481 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
-rw-r--r--lib/CodeGen/CodeGenModule.h4
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();