]> granicus.if.org Git - clang/commit
[ThinLTO] Allow importing of multiple symbols with same GUID
authorTeresa Johnson <tejohnson@google.com>
Thu, 29 Nov 2018 17:02:59 +0000 (17:02 +0000)
committerTeresa Johnson <tejohnson@google.com>
Thu, 29 Nov 2018 17:02:59 +0000 (17:02 +0000)
commitb162442217a1863093c945784e7f7ab006a891e3
treef07775107d21e04e5a25cdafa298bb8cf614d823
parent184b170da56120eef5e13f518248ef6a9a02b8ac
[ThinLTO] Allow importing of multiple symbols with same GUID

Summary:
The is the clang side of the fix in D55047, to handle the case where
two different modules have local variables with the same GUID because
they had the same source file name at compilation time. Allow multiple
symbols with the same GUID to be imported, and test that this case works
with the distributed backend path.

Depends on D55047.

Reviewers: evgeny777

Subscribers: mehdi_amini, inglorion, eraman, steven_wu, dexonsmith, cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@347887 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/BackendUtil.cpp
test/CodeGen/Inputs/thinlto_backend_local_name_conflict1.ll [new file with mode: 0644]
test/CodeGen/Inputs/thinlto_backend_local_name_conflict2.ll [new file with mode: 0644]
test/CodeGen/thinlto_backend_local_name_conflict.ll [new file with mode: 0644]