[GlobalMerge] Allow targets to enable merging of extern variables, NFC.
authorJohn Brawn <john.brawn@arm.com>
Mon, 3 Aug 2015 12:08:41 +0000 (12:08 +0000)
committerJohn Brawn <john.brawn@arm.com>
Mon, 3 Aug 2015 12:08:41 +0000 (12:08 +0000)
commit583fe8f2032099d63c12d2da2196f62b92a3e2af
tree5b5a2b69adc6064ee45648e23e43bea686483149
parentde5e9119ceb2e35585cd65fcbeccaa5201af62c0
[GlobalMerge] Allow targets to enable merging of extern variables, NFC.

Adjust the GlobalMergeOnExternal option so that the default behaviour is to
do whatever the Target thinks is best. Explicitly enabled or disabling the
option will override this default.

Differential Revision: http://reviews.llvm.org/D10965

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243873 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Scalar.h
lib/CodeGen/GlobalMerge.cpp