[PATCH] D44235: [LTO/gold] Support --wrap

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 13 17:12:15 PDT 2018


pcc added a comment.

In https://reviews.llvm.org/D44235#1036549, @tejohnson wrote:

> I had to revert as the new api is not available:
>  http://lab.llvm.org:8011/builders/clang-with-thin-lto-ubuntu/builds/9109/steps/build-stage2-LLVMgold.so/logs/stdio
>
> What is the best way to handle this? I see that there are a couple defines at the top of gold-plugin.cpp for other newer LDPT_* types, so I could add LDPT_GET_WRAP_SYMBOLS there.
>
> For ld_plugin_get_wrap_symbols I guess I can add my own typedef at the top of gold-plugin.cpp?


Sounds good. Of course, the `tv_get_wrap_symbols` field will not be present so you will need to cast one of the other fields.


Repository:
  rL LLVM

https://reviews.llvm.org/D44235





More information about the llvm-commits mailing list