diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-01-23 03:41:53 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-01-23 03:41:53 +0000 |
commit | 603d6b56a2b72358e7b599aab743beb44823d76c (patch) | |
tree | a55fe358c075dc4ce4318fc7a2bb056cbc1730f8 /include/llvm/Bitcode | |
parent | 2b21fbaf11e3ab490de1ff763bc1fbac87c5caac (diff) | |
download | external_llvm-603d6b56a2b72358e7b599aab743beb44823d76c.zip external_llvm-603d6b56a2b72358e7b599aab743beb44823d76c.tar.gz external_llvm-603d6b56a2b72358e7b599aab743beb44823d76c.tar.bz2 |
The iteration order over a std::set<Module*> depends on the addresses of the
modules. Avoid that to make the order the linker sees the modules deterministic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148676 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Bitcode')
-rw-r--r-- | include/llvm/Bitcode/Archive.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Bitcode/Archive.h b/include/llvm/Bitcode/Archive.h index f89a86c..86c44c7 100644 --- a/include/llvm/Bitcode/Archive.h +++ b/include/llvm/Bitcode/Archive.h @@ -394,7 +394,7 @@ class Archive { /// @brief Look up multiple symbols in the archive. bool findModulesDefiningSymbols( std::set<std::string>& symbols, ///< Symbols to be sought - std::set<Module*>& modules, ///< The modules matching \p symbols + SmallVectorImpl<Module*>& modules, ///< The modules matching \p symbols std::string* ErrMessage ///< Error msg storage, if non-zero ); |