Add comment.
authorDevang Patel <dpatel@apple.com>
Thu, 14 Sep 2006 05:49:10 +0000 (05:49 +0000)
committerDevang Patel <dpatel@apple.com>
Thu, 14 Sep 2006 05:49:10 +0000 (05:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30315 91177308-0d34-0410-b5e6-96231b3b80d8

tools/lto/lto.cpp

index 9dfc45676dfb1f1d9f6fb3b1cb21a956f3e85096..7f1ec1ac348fb7aa4ff0ba870ba156f3c90729cf 100644 (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)