diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-11-19 03:18:22 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-11-19 03:18:22 +0000 |
commit | 7783e8ad69a2ac14ba50f6b015806b48c4131240 (patch) | |
tree | 599c39598e9a847f48572bfd44d854601edaf70f /include/llvm/Bytecode | |
parent | 3cf2c32202c9bccfa3005c5b1edcecc69dd64598 (diff) | |
download | external_llvm-7783e8ad69a2ac14ba50f6b015806b48c4131240.zip external_llvm-7783e8ad69a2ac14ba50f6b015806b48c4131240.tar.gz external_llvm-7783e8ad69a2ac14ba50f6b015806b48c4131240.tar.bz2 |
Make findModulesDefiningSymbols modify its symbols argument so we can \
eliminate symbols defined by the archive efficiently
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17976 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Bytecode')
-rw-r--r-- | include/llvm/Bytecode/Archive.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/llvm/Bytecode/Archive.h b/include/llvm/Bytecode/Archive.h index 67615b3..943d979 100644 --- a/include/llvm/Bytecode/Archive.h +++ b/include/llvm/Bytecode/Archive.h @@ -396,11 +396,14 @@ class Archive { /// 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 ); /// @} |