diff options
author | Maksim Panchenko <maks@fb.com> | 2024-01-30 18:04:29 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-30 18:04:29 -0800 |
commit | 2abcbbd96ad731b05fae970a0abb23cda784dddd (patch) | |
tree | 9b226a9ba41dd4aafdc9331fdfd3f79f72c7e7c4 /bolt/lib/Utils/CommandLineOpts.cpp | |
parent | d783933bc910ac005e18928d22b6c10c4fe8d6f6 (diff) | |
download | llvm-2abcbbd96ad731b05fae970a0abb23cda784dddd.zip llvm-2abcbbd96ad731b05fae970a0abb23cda784dddd.tar.gz llvm-2abcbbd96ad731b05fae970a0abb23cda784dddd.tar.bz2 |
[BOLT] Detect Linux kernel based on ELF program headers (#80086)
Check if program header addresses fall into the kernel space to detect a
Linux kernel binary on x86-64.
Delete opts::LinuxKernelMode and use BinaryContext::IsLinuxKernel
instead.
Diffstat (limited to 'bolt/lib/Utils/CommandLineOpts.cpp')
-rw-r--r-- | bolt/lib/Utils/CommandLineOpts.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/bolt/lib/Utils/CommandLineOpts.cpp b/bolt/lib/Utils/CommandLineOpts.cpp index a1df5de2..e910fa4 100644 --- a/bolt/lib/Utils/CommandLineOpts.cpp +++ b/bolt/lib/Utils/CommandLineOpts.cpp @@ -29,7 +29,6 @@ const char *BoltRevision = namespace opts { bool HeatmapMode = false; -bool LinuxKernelMode = false; cl::OptionCategory BoltCategory("BOLT generic options"); cl::OptionCategory BoltDiffCategory("BOLTDIFF generic options"); |