Home
last modified time | relevance | path

Searched refs:UserC (Results 1 – 1 of 1) sorted by relevance

/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp830 Constant *UserC = cast<Constant>(U); in ResolveConstantForwardRefs() local
831 for (User::op_iterator I = UserC->op_begin(), E = UserC->op_end(); in ResolveConstantForwardRefs()
855 if (ConstantArray *UserCA = dyn_cast<ConstantArray>(UserC)) { in ResolveConstantForwardRefs()
857 } else if (ConstantStruct *UserCS = dyn_cast<ConstantStruct>(UserC)) { in ResolveConstantForwardRefs()
859 } else if (isa<ConstantVector>(UserC)) { in ResolveConstantForwardRefs()
862 assert(isa<ConstantExpr>(UserC) && "Must be a ConstantExpr."); in ResolveConstantForwardRefs()
863 NewC = cast<ConstantExpr>(UserC)->getWithOperands(NewOps); in ResolveConstantForwardRefs()
866 UserC->replaceAllUsesWith(NewC); in ResolveConstantForwardRefs()
867 UserC->destroyConstant(); in ResolveConstantForwardRefs()