diff --git a/llvm/tools/llvm-profgen/ProfiledBinary.cpp b/llvm/tools/llvm-profgen/ProfiledBinary.cpp index 35187c409f6e7a88e51ffe419b8da07e86234f56..632ddc7b50f54a33e5e48a352e77ca1b188428b6 100644 --- a/llvm/tools/llvm-profgen/ProfiledBinary.cpp +++ b/llvm/tools/llvm-profgen/ProfiledBinary.cpp @@ -60,11 +60,6 @@ static cl::opt KernelBinary("kernel", cl::desc("Generate the profile for Linux kernel binary.")); -static cl::opt - Pagesize("page-size", - cl::desc("page size"), cl::init(0x1000), - cl::desc("target system pagee size.")); - extern cl::opt ShowDetailedWarning; extern cl::opt InferMissingFrames; @@ -331,7 +326,7 @@ void ProfiledBinary::setPreferredTextSegmentAddresses(const ELFFile &Obj, // However such info isn't available at post-processing time, assuming // 4K page now. Note that we don't use EXEC_PAGESIZE from // because we may build the tools on non-linux. - uint64_t PageSize = Pagesize; + uint64_t PageSize = 0x1000; for (const typename ELFT::Phdr &Phdr : PhdrRange) { if (Phdr.p_type == ELF::PT_LOAD) { if (!FirstLoadableAddress)