Go to file
Rafael Espindola 370d528a05 Drop comdats from the dst module if they are not selected.
A really unfortunate design of llvm-link and related libraries is that
they operate one module at a time.

This means they can copy a GV to the destination module that should not
be there in the final result because a later bitcode file takes
precedence.

We already handled cases like a strong GV replacing a weak for example.

One case that is not currently handled is a comdat replacing another.
This doesn't happen in ELF, but with COFF largest selection kind it is
possible.

In "llvm-link a.ll b.ll" if the selected comdat was from a.ll,
everything will work and we will not copy the comdat from b.ll.

But if we run "llvm-link b.ll a.ll", we fail to delete the already
copied comdat from b.ll. This patch fixes that.

llvm-svn: 264103
2016-03-22 21:35:47 +00:00
clang Update cxx-features test to C++1z 2016-03-22 21:12:48 +00:00
clang-tools-extra [clang-tidy] Fix broken test with redundant string init (msvc). 2016-03-22 18:21:17 +00:00
compiler-rt [tsan] Fix check-tsan build by using CHECK_NE. 2016-03-22 18:12:18 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc math: Fix ilogb(double) return type 2016-02-24 00:52:15 +00:00
libcxx Missing ATOMIC_*_LOCK_FREE tests 2016-03-18 17:48:58 +00:00
libcxxabi [libcxxabi] Disable cxa_thread_atexit_test if unavailable 2016-03-17 10:00:24 +00:00
libunwind [AArch64] Fix libunwind build when using GNU assembler 2016-02-11 21:22:57 +00:00
lld Fix operator= on OwningAtomPtr to call destructor when needed. 2016-03-22 21:08:39 +00:00
lldb Fix a bug caused by my alias refactoring where, if an alias was defined in terms of another alias, trying to run the nested command would actually cause a crash in the command interpreter 2016-03-22 21:07:54 +00:00
llgo [llgo] Roll gofrontend forward 2016-03-15 05:36:43 +00:00
llvm Drop comdats from the dst module if they are not selected. 2016-03-22 21:35:47 +00:00
openmp [OMPT] Make tests require OMPT_BLAME 2016-03-22 08:23:24 +00:00
polly ScopInfo: Do not generate dependences for i1 values used in affine branches 2016-03-16 23:33:54 +00:00