[PATCH] D125847: LTO: Enable opaque pointers by default.

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 18 02:43:02 PDT 2022


nikic added a comment.

Related bug report: https://github.com/llvm/llvm-project/issues/55377

In D125847#3521080 <https://reviews.llvm.org/D125847#3521080>, @MatzeB wrote:

> I am not completely sure however how to deal with users specifying `-Xclang -no-opaque-pointers` explicitly. With this change they would end up using opaque-pointers anyway in LTO modes...

I believe the right way to do this is to add an `OpaquePointers` option to `lto::Config`, add `-plugin-opt=no-opaque-pointers` to LLD/LLVMgold.so, and then pass that from clang.

Alternatively we could just drop support for LTO with typed pointers :)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125847/new/

https://reviews.llvm.org/D125847



More information about the llvm-commits mailing list