[llvm] [BOLT] Detect Linux kernel version if the binary is a Linux kernel (PR #119088)

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 8 03:57:39 PST 2024


================
@@ -670,6 +670,9 @@ class BinaryContext {
   /// Indicates if the binary is Linux kernel.
   bool IsLinuxKernel{false};
 
+  /// Linux kernel version (major, minor, reversion)
+  std::tuple<unsigned, unsigned, unsigned> LinuxKernelVersion;
----------------
dcci wrote:

This maybe should be a struct instead of a tuple

https://github.com/llvm/llvm-project/pull/119088


More information about the llvm-commits mailing list