diff options
author | Mike Stump <mrs@apple.com> | 2009-02-13 19:36:03 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-02-13 19:36:03 +0000 |
commit | 324699105567f2948db316c3a3dc4c1d38a3657e (patch) | |
tree | 4c2cd7e205b47af061bce25568673a86e9aa72fe /lib/CodeGen/CodeGenModule.h | |
parent | 05db4278ecd193edcff63fb8c54818226fceaad2 (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.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(); |