[PATCH] D106084: [DebugInfo] Switch to using constructor homing (-debug-info-kind=constructor) by default when debug info is enabled

Amy Huang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 22 12:04:03 PDT 2021


akhuang added inline comments.


================
Comment at: clang/lib/Frontend/CompilerInvocation.cpp:1636
+    if (Opts.getDebugInfo() == codegenoptions::DebugInfoConstructor)
+      Opts.setDebugInfo(codegenoptions::LimitedDebugInfo);
 
----------------
probinson wrote:
> No... you want to check both options in one call, otherwise `-fno-use-ctor-homing -fuse-ctor-homing` will prefer the `no` version instead of last-one-wins.
> 
> I suggest fiddling the options should be done separately.
> Also if you want to make it a clang option, the option name should have `debug` in it; pretty sure all the -f options related to debug info do that, and in any case it's a good idea.
ah, right. 

I'll move this to a separate patch. 


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D106084



More information about the cfe-commits mailing list