[PATCH] D87920: [Support] Fix build for Haiku
Serge Pavlov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 28 20:27:05 PST 2021
sepavloff added inline comments.
================
Comment at: llvm/lib/Support/Unix/Program.inc:455-460
+#ifndef __HAIKU__
uint64_t PeakMemory = static_cast<uint64_t>(Info.ru_maxrss);
*ProcStat = ProcessStatistics{UserT + KernelT, UserT, PeakMemory};
+#else
+ *ProcStat = ProcessStatistics{UserT + KernelT, UserT, 0};
+#endif
----------------
dexonsmith wrote:
> It's nice to minimize the `#ifndef` block when possible; I was able to simplify this slightly in 39ecfe614350fa5db7b8f13f81212f8e3831a390.
> It's nice to minimize the #ifndef block when possible; I was able to simplify this slightly in 39ecfe614350fa5db7b8f13f81212f8e3831a390.
@dexonsmith Thank you!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87920/new/
https://reviews.llvm.org/D87920
More information about the llvm-commits
mailing list