[all-commits] [llvm/llvm-project] 361e4f: Fix debug info for NoDebug attr

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Thu May 21 06:03:32 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 361e4f14e35981e7498a38ab7c31da7fb7414fb8
      https://github.com/llvm/llvm-project/commit/361e4f14e35981e7498a38ab7c31da7fb7414fb8
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2020-05-21 (Thu, 21 May 2020)

  Changed paths:
    M clang/lib/CodeGen/CGDebugInfo.cpp
    A clang/test/CodeGen/nodebug-attr.c
    M clang/test/CodeGenCUDA/kernel-dbg-info.cu

  Log Message:
  -----------
  Fix debug info for NoDebug attr

NoDebug attr does not totally eliminate debug info about a function when
inlining is enabled. This is inconsistent with when inlining is disabled.

This patch fixes that.

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




More information about the All-commits mailing list