[all-commits] [llvm/llvm-project] 69f337: [AIX]Generate debug info for static init related f...

xiangling-liao via All-commits all-commits at lists.llvm.org
Thu Jul 16 07:44:32 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 69f3378ad65b41c979acc1bcb4968d2247e6adf7
      https://github.com/llvm/llvm-project/commit/69f3378ad65b41c979acc1bcb4968d2247e6adf7
  Author: Xiangling Liao <Xiangling.Liao at ibm.com>
  Date:   2020-07-16 (Thu, 16 Jul 2020)

  Changed paths:
    M clang/lib/CodeGen/CGDeclCXX.cpp
    M clang/lib/CodeGen/ItaniumCXXABI.cpp
    A clang/test/CodeGenCXX/aix-static-init-debug-info.cpp

  Log Message:
  -----------
  [AIX]Generate debug info for static init related functions

Set the debug location for static init related functions(__dtor
and __finalize) so we can generate valid debug info on AIX by invoking
-g with clang or -debug-info-kind=limited with clang_cc1.

This also works for any other future targets who may use sinit and
sterm functions for static initialization, where a direct call to
dtor will be generated within finalize function body.

This patch also aims at validating that the debug info generated
is correct for AIX sinit related functions.

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




More information about the All-commits mailing list