Searched refs:GCL (Results 1 – 1 of 1) sorted by relevance
30 void removeGlobalCtors(GlobalVariable *GCL, const BitVector &CtorsToRemove) { in removeGlobalCtors() argument32 ConstantArray *OldCA = cast<ConstantArray>(GCL->getInitializer()); in removeGlobalCtors()45 GCL->setInitializer(CA); in removeGlobalCtors()51 new GlobalVariable(CA->getType(), GCL->isConstant(), GCL->getLinkage(), in removeGlobalCtors()52 CA, "", GCL->getThreadLocalMode()); in removeGlobalCtors()53 GCL->getParent()->getGlobalList().insert(GCL->getIterator(), NGV); in removeGlobalCtors()54 NGV->takeName(GCL); in removeGlobalCtors()57 if (!GCL->use_empty()) { in removeGlobalCtors()59 if (V->getType() != GCL->getType()) in removeGlobalCtors()60 V = ConstantExpr::getBitCast(V, GCL->getType()); in removeGlobalCtors()[all …]