[llvm-commits] CVS: llvm/include/llvm/Bytecode/Archive.h

Reid Spencer reid at x10sys.com
Thu Nov 18 19:18:33 PST 2004



Changes in directory llvm/include/llvm/Bytecode:

Archive.h updated: 1.6 -> 1.7
---
Log message:

Make findModulesDefiningSymbols modify its symbols argument so we can \
eliminate symbols defined by the archive efficiently

---
Diffs of the changes:  (+6 -3)

Index: llvm/include/llvm/Bytecode/Archive.h
diff -u llvm/include/llvm/Bytecode/Archive.h:1.6 llvm/include/llvm/Bytecode/Archive.h:1.7
--- llvm/include/llvm/Bytecode/Archive.h:1.6	Tue Nov 16 00:46:55 2004
+++ llvm/include/llvm/Bytecode/Archive.h	Thu Nov 18 21:18:22 2004
@@ -396,11 +396,14 @@
     /// more than one symbol at a time. If \p symbols contains a list of 
     /// undefined symbols in some module, then calling this method is like 
     /// making one complete pass through the archive to resolve symbols but is
-    /// more efficient than looking at the individual members.
+    /// more efficient than looking at the individual members. Note that on 
+    /// exit, the symbols resolved by this method will be removed from \p
+    /// symbols to ensure they are not re-searched on a subsequent call. If
+    /// you need to retain the list of symbols, make a copy.
     /// @brief Look up multiple symbols in the archive.
     void findModulesDefiningSymbols(
-      const std::set<std::string>& symbols, ///< Symbols to be sought
-      std::set<ModuleProvider*>& modules    ///< The modules matching \p symbols
+      std::set<std::string>& symbols,     ///< Symbols to be sought
+      std::set<ModuleProvider*>& modules  ///< The modules matching \p symbols
     );
 
   /// @}






More information about the llvm-commits mailing list