diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-10-27 16:21:54 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-10-27 16:21:54 +0000 |
commit | 1518a5eca74a85fe25516e7ddf4f35c2fc3e2e69 (patch) | |
tree | 2c3bfa40fc63177e96c142d051736ab9dbff54bf /clang/lib/CodeGen/CodeGenModule.h | |
parent | cc1b168ef6745994b32b1fabb49a0f7962ae1646 (diff) | |
download | llvm-1518a5eca74a85fe25516e7ddf4f35c2fc3e2e69.zip llvm-1518a5eca74a85fe25516e7ddf4f35c2fc3e2e69.tar.gz llvm-1518a5eca74a85fe25516e7ddf4f35c2fc3e2e69.tar.bz2 |
Do the guarding of instantiated static data members
on if its linkage is weak. Currently this is the
case but may change in the future. (part of radar
8562966).
llvm-svn: 117452
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 68898cf..683f175 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -511,7 +511,13 @@ public: /// GetTargetTypeStoreSize - Return the store size, in character units, of /// the given LLVM type. CharUnits GetTargetTypeStoreSize(const llvm::Type *Ty) const; - + + /// GetLLVMLinkageVarDefinition - Returns LLVM linkage for a global + /// variable. + llvm::GlobalValue::LinkageTypes + GetLLVMLinkageVarDefinition(const VarDecl *D, + llvm::GlobalVariable *GV); + std::vector<const CXXRecordDecl*> DeferredVTables; private: @@ -552,7 +558,7 @@ private: void EmitAliasDefinition(GlobalDecl GD); void EmitObjCPropertyImplementations(const ObjCImplementationDecl *D); void EmitObjCIvarInitializations(ObjCImplementationDecl *D); - + // C++ related functions. bool TryEmitDefinitionAsAlias(GlobalDecl Alias, GlobalDecl Target); |