[all-commits] [llvm/llvm-project] d30de9: [libc] Define LLVM_LIBC_FUNCTION with a layer of m...

Roland McGrath via All-commits all-commits at lists.llvm.org
Sat Mar 25 11:31:56 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d30de9844e1a9f1e77677b8cf4a7f4db977c0c9f
      https://github.com/llvm/llvm-project/commit/d30de9844e1a9f1e77677b8cf4a7f4db977c0c9f
  Author: Roland McGrath <mcgrathr at google.com>
  Date:   2023-03-25 (Sat, 25 Mar 2023)

  Changed paths:
    M libc/src/__support/common.h

  Log Message:
  -----------
  [libc] Define LLVM_LIBC_FUNCTION with a layer of macro expansion

Move the real LLVM_LIBC_FUNCTION macro definitions to
LLVM_LIBC_FUNCTION_IMPL and make LLVM_LIBC_FUNCTION a wrapper to
expand macros in its arguments.  This makes it possible to
compile libc implementation and test files with -Dfunc=othername.

Reviewed By: sivachandra

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




More information about the All-commits mailing list