[PATCH] D72427: [DebugInfo] Add option to clang to limit debug info that is emitted for classes.

Adrian Prantl via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 10 10:22:15 PST 2020


aprantl added inline comments.


================
Comment at: clang/lib/CodeGen/CGDebugInfo.cpp:4516
 void CGDebugInfo::EmitGlobalVariable(const ValueDecl *VD, const APValue &Init) {
-  assert(DebugKind >= codegenoptions::LimitedDebugInfo);
+  assert(CGM.getCodeGenOpts().isFullDebug());
   if (VD->hasAttr<NoDebugAttr>())
----------------
akhuang wrote:
> aprantl wrote:
> > This change appears to be unnecessary?
> Do you mean changing the DebugKind comparison?
Yes, since the new kind is < Limited.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D72427





More information about the cfe-commits mailing list