[all-commits] [llvm/llvm-project] b2f34d: [AIX][z/OS][Support] Provide alternate no-op mappe...

David Tenty via All-commits all-commits at lists.llvm.org
Wed Jan 5 07:21:22 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b2f34d6af1b814734518539542dbae5b599b0ef3
      https://github.com/llvm/llvm-project/commit/b2f34d6af1b814734518539542dbae5b599b0ef3
  Author: David Tenty <daltenty at ibm.com>
  Date:   2022-01-05 (Wed, 05 Jan 2022)

  Changed paths:
    M llvm/lib/Support/Unix/Path.inc

  Log Message:
  -----------
  [AIX][z/OS][Support] Provide alternate no-op mapped_file_region::dontNeedImpl implementation

mapped_file_region::dontNeedImpl added in D116366 calls madvise, which
causes problems for z/OS and AIX.

For z/OS, we don't have either madvise, so treat this as a no-op, same
as Windows does.

For AIX, it doesn't have any effect, doesn't have a standardized
signature, and it needs certain feature test macros (i.e. _ALL_SOURCE)
we don't set by default for LLVM on AIX, so just make it a no-op too.

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




More information about the All-commits mailing list