[all-commits] [llvm/llvm-project] b59b36: Debug Info: Mark os_log helper functions as artifi...

adrian-prantl via All-commits all-commits at lists.llvm.org
Tue May 26 09:09:00 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b59b3640bcbdfc6cf4b35ff3a6ad5f524a073b45
      https://github.com/llvm/llvm-project/commit/b59b3640bcbdfc6cf4b35ff3a6ad5f524a073b45
  Author: Adrian Prantl <aprantl at apple.com>
  Date:   2020-05-26 (Tue, 26 May 2020)

  Changed paths:
    M clang/lib/CodeGen/CGBuiltin.cpp
    A clang/test/CodeGen/debug-info-oslog.c

  Log Message:
  -----------
  Debug Info: Mark os_log helper functions as artificial

The os_log helper functions are linkonce_odr and supposed to be
uniqued across TUs, so attachine a DW_AT_decl_line on it is highly
misleading. By setting the function decl to implicit, CGDebugInfo
properly marks the functions as artificial and uses a default file /
line 0 location for the function.

rdar://problem/63450824

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


  Commit: 6b7d51ad4a16579b0a7d41c77715be4d9e266d8c
      https://github.com/llvm/llvm-project/commit/6b7d51ad4a16579b0a7d41c77715be4d9e266d8c
  Author: Adrian Prantl <aprantl at apple.com>
  Date:   2020-05-26 (Tue, 26 May 2020)

  Changed paths:
    M clang/include/clang/Index/IndexingOptions.h

  Log Message:
  -----------
  Add missing forward decl to unbreak the modular build


Compare: https://github.com/llvm/llvm-project/compare/8bc03d216824...6b7d51ad4a16


More information about the All-commits mailing list