[PATCH] D97345: Improve the debug info for coro-split .resume functions

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 23 16:21:10 PST 2021


aprantl created this revision.
aprantl added reviewers: vsk, bruno, dexonsmith, junparser.
Herald added subscribers: lxfind, hiraditya.
aprantl requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch adjusts the linkage name of .resume functions to match the actual symbol name and updates the scope line to point to the suspend point. This makes the first address in the function point to the first source line in the resume function rather than the function declaration. Without this the line table "jumps" from the beginning of the function to the suspend point at the beginning.

rdar://73386346


https://reviews.llvm.org/D97345

Files:
  llvm/include/llvm/IR/DebugInfoMetadata.h
  llvm/include/llvm/Transforms/Utils/Cloning.h
  llvm/lib/Transforms/Coroutines/CoroSplit.cpp
  llvm/test/Transforms/Coroutines/coro-async.ll
  llvm/test/Transforms/Coroutines/coro-debug.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97345.325932.patch
Type: text/x-patch
Size: 7378 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210224/1cdf5b4a/attachment.bin>


More information about the llvm-commits mailing list