[PATCH] D154815: [BOLT] Add reading support for Linux ORC sections

Amir Ayupov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 13 10:39:23 PDT 2023


Amir added inline comments.


================
Comment at: bolt/lib/Rewrite/LinuxKernelRewriter.cpp:436-438
+  const uint64_t NumEntries = ORCUnwindIPSection->getSize() / 4;
+  if (ORCUnwindSection->getSize() != NumEntries * 6 ||
+      ORCUnwindIPSection->getSize() != NumEntries * 4)
----------------
Shall we define named constants for clarity?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D154815/new/

https://reviews.llvm.org/D154815



More information about the llvm-commits mailing list