[PATCH] D67385: Pass -mcmodel to LTO plugin

Kuan Hsu Chen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 23 07:46:54 PDT 2019


khchen added a comment.

@tejohnson when I run the `clang -flto -Wl,-plugin-opt=-help` command, it shows the

  --code-model=<value>                               - Choose code model
    =tiny                                            -   Tiny code model
    =small                                           -   Small code model
    =kernel                                          -   Kernel code model
    =medium                                          -   Medium code model
    =large                                           -   Large code model

so I think the clang driver need to pass this info to LTO codegen, does it make sense?


Repository:
  rC Clang

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

https://reviews.llvm.org/D67385





More information about the cfe-commits mailing list