[Driver][Darwin] Pass -no_deduplicate to ld64
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Fri, 21 Oct 2016 01:49:14 +0000 (01:49 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Fri, 21 Oct 2016 01:49:14 +0000 (01:49 +0000)
commitde9cab942bf1f91643c2a88d95d9d6a55fc1e77f
tree81b78b2c30b4d0258d7fb62754235579cb1b1101
parented84df008f609f7245871a9b6d00b57cb19410aa
[Driver][Darwin] Pass -no_deduplicate to ld64

Recent versions of ld64 run a deduplicate pass, which is on by default.
Disable the pass by using -no_deduplicate in certain condition and
enhance total compile time.

rdar://problem/25455336

llvm-svn: 284798
clang/include/clang/Driver/Job.h
clang/lib/Driver/Tools.cpp
clang/test/Driver/darwin-ld-dedup.c [new file with mode: 0644]