summaryrefslogtreecommitdiffstats
path: root/clang/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
commit2c867aec4042dd12218eae4cc55ca5e30f85487e (patch)
treee43a81d32dbe5ed7fc08b70291a2de9d26bfb5d9 /clang/lib/CodeGen/CodeGenModule.h
parent9ef847be12cfdb9a20885be4c77dacd2439bc4c3 (diff)
downloadbcm5719-llvm-2c867aec4042dd12218eae4cc55ca5e30f85487e.tar.gz
bcm5719-llvm-2c867aec4042dd12218eae4cc55ca5e30f85487e.zip
Move DescriptorUniqueCount into CGM.
llvm-svn: 64481
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index e79d18990d6..020f74cddda 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/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();
OpenPOWER on IntegriCloud