[all-commits] [llvm/llvm-project] 896f79: [profile] Remove dependence on getpagesize from In...

Vedant Kumar via All-commits all-commits at lists.llvm.org
Thu Jul 30 16:23:00 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 896f797b8bb7683f7e52c6dc94979f3c449bc37d
      https://github.com/llvm/llvm-project/commit/896f797b8bb7683f7e52c6dc94979f3c449bc37d
  Author: Vedant Kumar <vsk at apple.com>
  Date:   2020-07-30 (Thu, 30 Jul 2020)

  Changed paths:
    M compiler-rt/lib/profile/InstrProfiling.h
    M compiler-rt/lib/profile/InstrProfilingBuffer.c
    M compiler-rt/lib/profile/InstrProfilingFile.c
    M compiler-rt/test/profile/instrprof-without-libc.c

  Log Message:
  -----------
  [profile] Remove dependence on getpagesize from InstrProfilingBuffer.c.o

InstrProfilingBuffer.c.o is generic code that must support compilation
into freestanding projects. This gets rid of its dependence on the
_getpagesize symbol from libc, shifting it to InstrProfilingFile.c.o.

This fixes a build failure seen in a firmware project.

rdar://66249701




More information about the All-commits mailing list