[ThinLTO] Fix printing of module paths for distributed backend indexes
authorTeresa Johnson <tejohnson@google.com>
Mon, 2 Jul 2018 22:09:23 +0000 (22:09 +0000)
committerTeresa Johnson <tejohnson@google.com>
Mon, 2 Jul 2018 22:09:23 +0000 (22:09 +0000)
commit8fc766681d8172a81604276f3afdd47a1d3b6625
treefa4a4b5295a21e331c97f07f9b9645e47f470862
parent696ce3770b741ef7f913b5eda73f0b2fda24e75c
[ThinLTO] Fix printing of module paths for distributed backend indexes

Summary:
In the individual index files emitted for distributed ThinLTO backends,
the module path ids are not contiguous. Assign slots to module paths in
order to handle this better and also to get contiguous numbering in the
summary assembly.

Reviewers: davidxl, dexonsmith

Subscribers: mehdi_amini, inglorion, eraman, llvm-commits, steven_wu

Differential Revision: https://reviews.llvm.org/D48698

llvm-svn: 336148
llvm/lib/IR/AsmWriter.cpp
llvm/test/tools/gold/X86/thinlto.ll