[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:40 PST 2024
================
@@ -1205,6 +1225,9 @@ void RewriteInstance::discoverFileObjects() {
PreviousFunction = BF;
}
+ if (BC->IsLinuxKernel && !std::get<0>(BC->LinuxKernelVersion))
+ BC->errs() << "BOLT-WARNING: Linux kernel version is unknown\n";
----------------
dcci wrote:
If the version of the kernel is unknown, you just emit a warning instead of erroring out?
https://github.com/llvm/llvm-project/pull/119088
More information about the llvm-commits
mailing list