[PATCH] D57497: [RISCV] Passing -G value to RISCV backend

Shiva Chen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 31 19:28:57 PST 2019


shiva0217 added a comment.
Herald added a project: clang.

In D57497#1378511 <https://reviews.llvm.org/D57497#1378511>, @simoncook wrote:

> As this mllvm option only affects the creation of ELF objects, do we also need to add a similar option for the LTO case, as the -G value would have no effect otherwise?


Hi Simon, I think you're right, we may need a way to pass -G value for the LTO. One possible solution is adding passing code in `AddGoldPlugin`, but there's no other target specific code.  I can't find other targets passing their `cl::opt` flags through the LTO. Any suggestions?


Repository:
  rC Clang

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

https://reviews.llvm.org/D57497





More information about the cfe-commits mailing list