[PATCH] D77886: [mir-strip-debug] Optionally preserve debug info that wasn't from debugify/mir-debugify

Vedant Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 10 11:06:52 PDT 2020


vsk added inline comments.


================
Comment at: llvm/lib/CodeGen/MachineStripDebug.cpp:101
+  StripDebugMachineModule(bool OnlyDebugified = true)
+      : ModulePass(ID), OnlyDebugified(OnlyDebugified) {}
 
----------------
I think the default value for OnlyDebugified should come from a cl::opt (e.g. -mir-strip-debugify-only=0|1). Otherwise, changing the behavior of -mir-strip-debug would require further compiler changes.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D77886





More information about the llvm-commits mailing list