[PATCH] D150221: Add option -fkeep-static-variables to emit all static variables

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 25 11:58:33 PDT 2023


efriedma added a comment.

I think I'm okay with the semantics as-is.



================
Comment at: clang/include/clang/Driver/Options.td:1703
+  PosFlag<SetTrue, [CC1Option], "Keep">, NegFlag<SetFalse, [], "Don't keep">,
+  BothFlags<[NoXarchOption], " static variables if unused">>;
 defm fixed_point : BoolFOption<"fixed-point",
----------------
Can you add a bit more of a description of what this does, and how it's expected to be used?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D150221



More information about the cfe-commits mailing list