[all-commits] [llvm/llvm-project] a9f511: [DebugInfo] Enable debug info emission for extern ...

Fangrui Song via All-commits all-commits at lists.llvm.org
Thu Jul 6 12:59:19 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a9f5119a78aaa1fc63347a89aee50922bbb8c99c
      https://github.com/llvm/llvm-project/commit/a9f5119a78aaa1fc63347a89aee50922bbb8c99c
  Author: Yuze Chi <chiyuze at google.com>
  Date:   2023-07-06 (Thu, 06 Jul 2023)

  Changed paths:
    M clang/lib/Sema/SemaDecl.cpp
    A clang/test/CodeGen/debug-info-extern-basic.cpp

  Log Message:
  -----------
  [DebugInfo] Enable debug info emission for extern variables in C++

Debug info emission for extern variables in C++ was previously disabled
when the functionality was added in https://reviews.llvm.org/D71818 and
originally in https://reviews.llvm.org/D70696, because there was no use
case. We are enabling it now, as we start to deploy BPF programs
compiled from C++, leveraging C++ features like templates to reduce code
complexity. This patch is required so that we can still use kconfig in
such BPF programs compiled from C++.

Reviewed By: rnk, dblaikie, MaskRay, yonghong-song

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




More information about the All-commits mailing list