Add comment.

llvm-svn: 30315
This commit is contained in:
Devang Patel 2006-09-14 05:49:10 +00:00
parent affe88eeac
commit dd53fd41cd
1 changed files with 3 additions and 0 deletions

View File

@ -93,6 +93,9 @@ findExternalRefs(Value *value, std::set<std::string> &references,
if (lt != LTOInternalLinkage && strncmp (gv->getName().c_str(), "llvm.", 5))
references.insert(mangler.getValueName(gv));
}
// GlobalValue, even with InternalLinkage type, may have operands with
// ExternalLinkage type. Do not ignore these operands.
if (Constant *c = dyn_cast<Constant>(value))
// Handle ConstantExpr, ConstantStruct, ConstantArry etc..
for (unsigned i = 0, e = c->getNumOperands(); i != e; ++i)