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

Amy Huang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 14 13:59:31 PST 2021


akhuang 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);
----------------
rnk wrote:
> I see Amy included the linkage name step as part of this patch, so disregard that comment.
oops, didn't realize that I included it here. Anyway, I can commit this separately. 


================
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;
----------------
rnk wrote:
> 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?
Oh, right. I don't think we need this anymore.. 


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D94639



More information about the llvm-commits mailing list