diff options
author | Devang Patel <dpatel@apple.com> | 2006-09-14 05:49:10 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2006-09-14 05:49:10 +0000 |
commit | 544ea34a9f7aeef5fa3cbfdaae5933f93f4f68ec (patch) | |
tree | d32163b98957915eab51a2c0e8785a23b6394690 /tools/lto | |
parent | 89abd77060d310967811b36c72d019a71c753485 (diff) | |
download | external_llvm-544ea34a9f7aeef5fa3cbfdaae5933f93f4f68ec.zip external_llvm-544ea34a9f7aeef5fa3cbfdaae5933f93f4f68ec.tar.gz external_llvm-544ea34a9f7aeef5fa3cbfdaae5933f93f4f68ec.tar.bz2 |
Add comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30315 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto')
-rw-r--r-- | tools/lto/lto.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/lto/lto.cpp b/tools/lto/lto.cpp index 9dfc456..7f1ec1a 100644 --- a/tools/lto/lto.cpp +++ b/tools/lto/lto.cpp @@ -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) |