Mercurial > projects > ldc
comparison ir/irclass.cpp @ 1403:e5c5d354c649
Tentative fix for semantic3 on imported modules and unnecessary template
function definition issue. Please test!
Also change linkage of __interfaceInfos to external (same as __Class, __vtbl,
__init). The other change might make this superfluous.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Thu, 21 May 2009 10:56:04 +0200 |
parents | 8d501abecd24 |
children | 638d16625da2 |
comparison
equal
deleted
inserted
replaced
1402:1311dabc6a1f | 1403:e5c5d354c649 |
---|---|
118 | 118 |
119 // put it in a global | 119 // put it in a global |
120 std::string name("_D"); | 120 std::string name("_D"); |
121 name.append(cd->mangle()); | 121 name.append(cd->mangle()); |
122 name.append("16__interfaceInfosZ"); | 122 name.append("16__interfaceInfosZ"); |
123 classInterfacesArray = new llvm::GlobalVariable(array_type, true, DtoLinkage(cd), NULL, name, classInfo); | 123 |
124 llvm::GlobalValue::LinkageTypes _linkage = DtoExternalLinkage(aggrdecl); | |
125 classInterfacesArray = new llvm::GlobalVariable(array_type, true, _linkage, NULL, name, classInfo); | |
124 | 126 |
125 return classInterfacesArray; | 127 return classInterfacesArray; |
126 } | 128 } |
127 | 129 |
128 ////////////////////////////////////////////////////////////////////////////// | 130 ////////////////////////////////////////////////////////////////////////////// |