[LTO/gold] Support --wrap
authorTeresa Johnson <tejohnson@google.com>
Tue, 13 Mar 2018 23:06:19 +0000 (23:06 +0000)
committerTeresa Johnson <tejohnson@google.com>
Tue, 13 Mar 2018 23:06:19 +0000 (23:06 +0000)
commite8f3b0782a44ac27c4a53969d66556f29af4bdc2
tree27a4134f0a6bd9241b2252377c63d9604ebff621
parentb9d2908cd3be808e7128d17f0f5a636adf570144
[LTO/gold] Support --wrap

Summary:
Utilize new gold plugin api interface for obtaining --wrap option
arguments, and LTO API handling (added for --wrap support in lld LTO),
to mark symbols so that LTO does not optimize them inappropriately.

Note the test cases will be in a new gold test subdirectory that
is dependent on the next release of gold which will contain the new
interfaces.

Reviewers: pcc, tmsriram

Subscribers: mehdi_amini, llvm-commits, inglorion

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

llvm-svn: 327459
llvm/test/tools/gold/X86/v1.16/Inputs/wrap-bar.ll [new file with mode: 0644]
llvm/test/tools/gold/X86/v1.16/lit.local.cfg [new file with mode: 0644]
llvm/test/tools/gold/X86/v1.16/wrap-1.ll [new file with mode: 0644]
llvm/test/tools/gold/X86/v1.16/wrap-2.ll [new file with mode: 0644]
llvm/tools/gold/gold-plugin.cpp