Dependent libraries could be native too.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36582 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2007-04-30 00:00:10 +00:00
parent 3b726396ab
commit 126b1b8683

View File

@ -54,9 +54,12 @@ Linker::LinkInItems(const ItemList& Items, ItemList& NativeItems) {
// symbols.
bool is_native;
for (Module::lib_iterator I = Composite->lib_begin(),
E = Composite->lib_end(); I != E; ++I)
E = Composite->lib_end(); I != E; ++I) {
if(LinkInLibrary(*I, is_native))
return true;
if (is_native)
NativeItems.push_back(std::make_pair(*I, true));
}
return false;
}