[all-commits] [llvm/llvm-project] 2c73c2: [libc] Add Convenience syscall Template Function

Alex Brachet via All-commits all-commits at lists.llvm.org
Thu Feb 13 11:40:10 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2c73c266665108ab84a27b11c7860db4bd839225
      https://github.com/llvm/llvm-project/commit/2c73c266665108ab84a27b11c7860db4bd839225
  Author: Alex Brachet <alexbrachetmialot at gmail.com>
  Date:   2020-02-13 (Thu, 13 Feb 2020)

  Changed paths:
    M libc/config/linux/x86_64/syscall.h.inc
    M libc/test/config/linux/x86_64/syscall_test.cpp

  Log Message:
  -----------
  [libc] Add Convenience syscall Template Function

Summary: This patch adds a convenience template function so we don't need to cast all types to `long` manually when calling `__llvm_libc::syscall`.

Reviewers: sivachandra, MaskRay, gchatelet

Reviewed By: sivachandra

Subscribers: libc-commits, tschuett

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




More information about the All-commits mailing list