[PATCH] D94639: [DebugInfo][CodeView] Change in line tables only mode to emit parent/context scopes for functions, using declarations for types

Reid Kleckner via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 13 17:48:18 PST 2021


rnk added inline comments.


================
Comment at: clang/lib/CodeGen/CGDebugInfo.cpp:1050-1052
+  // Don't include a linkage name in line tables only.
+  if (CGM.getCodeGenOpts().hasReducedDebugInfo())
+    Identifier = getTypeIdentifier(Ty, CGM, TheCU);
----------------
I see Amy included the linkage name step as part of this patch, so disregard that comment.


================
Comment at: llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp:370-373
+  // MSVC, if not using line tables only.
+  StringRef DisplayName = SP->getName();
+  if (SP->getUnit()->getEmissionKind() != DICompileUnit::LineTablesOnly)
+    DisplayName = SP->getName().split('<').first;
----------------
Do we still need the LLVM part of this? We needed it before because we were operating on strings like `foo::<unnamed-tag>::operator()`. Can we leave it as is for now, or handle it as a separate patch?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D94639



More information about the cfe-commits mailing list