[PATCH] D87920: [Support] Fix build for Haiku
Duncan P. N. Exon Smith via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 28 12:31:15 PST 2021
dexonsmith 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
----------------
It's nice to minimize the `#ifndef` block when possible; I was able to simplify this slightly in 39ecfe614350fa5db7b8f13f81212f8e3831a390.
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