llvm.org GIT mirror llvm / 97d92d5
GlobalValue with InternalLinkage may have operands with ExternalLinkage type. Do not ignore these operands while finding external references. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30310 91177308-0d34-0410-b5e6-96231b3b80d8 Devang Patel 13 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
9292 if (lt != LTOInternalLinkage && strncmp (gv->getName().c_str(), "llvm.", 5))
9393 references.insert(mangler.getValueName(gv));
9494 }
95 else if (Constant *c = dyn_cast(value))
95 if (Constant *c = dyn_cast(value))
9696 // Handle ConstantExpr, ConstantStruct, ConstantArry etc..
9797 for (unsigned i = 0, e = c->getNumOperands(); i != e; ++i)
9898 findExternalRefs(c->getOperand(i), references, mangler);