Lines Matching refs:GCL
30 void removeGlobalCtors(GlobalVariable *GCL, const BitVector &CtorsToRemove) { in removeGlobalCtors() argument
32 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()
61 GCL->replaceAllUsesWith(V); in removeGlobalCtors()
63 GCL->eraseFromParent(); in removeGlobalCtors()