[PATCH] D57497: [RISCV] Passing small data limitation value to RISCV backend

Ana Pazos via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 20 14:05:40 PDT 2019


apazos added inline comments.
Herald added subscribers: benna, psnobl.


================
Comment at: lib/Driver/ToolChains/Clang.cpp:1803
+
+  // Forward the -msmall-data-limit= option.
+  if (Arg *A = Args.getLastArg(options::OPT_G)) {
----------------
Might be simpler to just set it to 0, and if G is present in the command line, and the other flags are not present, then you change the value. Also, might be good to print a warning to let user know -G is ignored?


================
Comment at: lib/Driver/ToolChains/RISCVToolchain.cpp:117
 
+  if (D.isUsingLTO()) {
+    assert(!Inputs.empty() && "Must have at least one input.");
----------------
This change is not part of this patch.


Repository:
  rL LLVM

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

https://reviews.llvm.org/D57497





More information about the cfe-commits mailing list