The iteration order over a std::set<Module*> depends on the addresses of the
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 23 Jan 2012 03:41:53 +0000 (03:41 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 23 Jan 2012 03:41:53 +0000 (03:41 +0000)
commit603d6b56a2b72358e7b599aab743beb44823d76c
treea55fe358c075dc4ce4318fc7a2bb056cbc1730f8
parent2b21fbaf11e3ab490de1ff763bc1fbac87c5caac
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
include/llvm/Bitcode/Archive.h
lib/Archive/ArchiveReader.cpp
lib/Linker/LinkArchives.cpp