[llvm-commits] CVS: llvm/lib/Linker/LinkItems.cpp

Reid Spencer reid at x10sys.com
Sun Apr 29 17:00:28 PDT 2007



Changes in directory llvm/lib/Linker:

LinkItems.cpp updated: 1.12 -> 1.13
---
Log message:

Dependent libraries could be native too.


---
Diffs of the changes:  (+4 -1)

 LinkItems.cpp |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)


Index: llvm/lib/Linker/LinkItems.cpp
diff -u llvm/lib/Linker/LinkItems.cpp:1.12 llvm/lib/Linker/LinkItems.cpp:1.13
--- llvm/lib/Linker/LinkItems.cpp:1.12	Tue Apr 10 21:44:19 2007
+++ llvm/lib/Linker/LinkItems.cpp	Sun Apr 29 19:00:10 2007
@@ -54,9 +54,12 @@
   // 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;
 }






More information about the llvm-commits mailing list