[all-commits] [llvm/llvm-project] d268fe: Improve the debug info for coro-split .resume func...

adrian-prantl via All-commits all-commits at lists.llvm.org
Thu Mar 4 11:06:02 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d268febc5610021af41b9dde5762404d09509f30
      https://github.com/llvm/llvm-project/commit/d268febc5610021af41b9dde5762404d09509f30
  Author: Adrian Prantl <aprantl at apple.com>
  Date:   2021-03-04 (Thu, 04 Mar 2021)

  Changed paths:
    M llvm/include/llvm/IR/DebugInfoMetadata.h
    M llvm/lib/Transforms/Coroutines/CoroSplit.cpp
    M llvm/test/Transforms/Coroutines/coro-async.ll

  Log Message:
  -----------
  Improve the debug info for coro-split .resume functions

This patch 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

Differential Revision: https://reviews.llvm.org/D97345




More information about the All-commits mailing list