[profile] Remove dependence on getpagesize from InstrProfilingBuffer.c.o
authorVedant Kumar <vsk@apple.com>
Thu, 30 Jul 2020 23:19:05 +0000 (16:19 -0700)
committerVedant Kumar <vsk@apple.com>
Thu, 30 Jul 2020 23:22:40 +0000 (16:22 -0700)
commit896f797b8bb7683f7e52c6dc94979f3c449bc37d
tree6cfeebe4530ebd4aad37f6d51f69daabbb9c4f0b
parent57605758b5de3726eec1d6e587de1003af1ab5b7
[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
compiler-rt/lib/profile/InstrProfiling.h
compiler-rt/lib/profile/InstrProfilingBuffer.c
compiler-rt/lib/profile/InstrProfilingFile.c
compiler-rt/test/profile/instrprof-without-libc.c