[lld] r288982 - Rename MaxPageSize to DefaultMaxPageSize to avoid confusion.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 7 13:13:28 PST 2016
Author: rafael
Date: Wed Dec 7 15:13:27 2016
New Revision: 288982
URL: http://llvm.org/viewvc/llvm-project?rev=288982&view=rev
Log:
Rename MaxPageSize to DefaultMaxPageSize to avoid confusion.
Thanks to Rui for the suggestion.
Modified:
lld/trunk/ELF/Driver.cpp
lld/trunk/ELF/Target.cpp
lld/trunk/ELF/Target.h
Modified: lld/trunk/ELF/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Driver.cpp?rev=288982&r1=288981&r2=288982&view=diff
==============================================================================
--- lld/trunk/ELF/Driver.cpp (original)
+++ lld/trunk/ELF/Driver.cpp Wed Dec 7 15:13:27 2016
@@ -762,7 +762,7 @@ template <class ELFT> void LinkerDriver:
// Initialize Config->MaxPageSize. The default value is defined by
// each target.
Config->MaxPageSize =
- getZOptionValue(Args, "max-page-size", Target->MaxPageSize);
+ getZOptionValue(Args, "max-page-size", Target->DefaultMaxPageSize);
if (!isPowerOf2_64(Config->MaxPageSize))
error("max-page-size: value isn't a power of 2");
Modified: lld/trunk/ELF/Target.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Target.cpp?rev=288982&r1=288981&r2=288982&view=diff
==============================================================================
--- lld/trunk/ELF/Target.cpp (original)
+++ lld/trunk/ELF/Target.cpp Wed Dec 7 15:13:27 2016
@@ -1020,7 +1020,7 @@ PPC64TargetInfo::PPC64TargetInfo() {
// We need 64K pages (at least under glibc/Linux, the loader won't
// set different permissions on a finer granularity than that).
- MaxPageSize = 65536;
+ DefaultMaxPageSize = 65536;
// The PPC64 ELF ABI v1 spec, says:
//
@@ -1190,7 +1190,7 @@ AArch64TargetInfo::AArch64TargetInfo() {
GotPltEntrySize = 8;
PltEntrySize = 16;
PltHeaderSize = 32;
- MaxPageSize = 65536;
+ DefaultMaxPageSize = 65536;
// It doesn't seem to be documented anywhere, but tls on aarch64 uses variant
// 1 of the tls structures and the tcb size is 16.
@@ -1932,7 +1932,7 @@ bool ARMTargetInfo::isTlsInitialExecRel(
template <class ELFT> MipsTargetInfo<ELFT>::MipsTargetInfo() {
GotPltHeaderEntriesNum = 2;
- MaxPageSize = 65536;
+ DefaultMaxPageSize = 65536;
GotEntrySize = sizeof(typename ELFT::uint);
GotPltEntrySize = sizeof(typename ELFT::uint);
PltEntrySize = 16;
Modified: lld/trunk/ELF/Target.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Target.h?rev=288982&r1=288981&r2=288982&view=diff
==============================================================================
--- lld/trunk/ELF/Target.h (original)
+++ lld/trunk/ELF/Target.h Wed Dec 7 15:13:27 2016
@@ -63,7 +63,7 @@ public:
unsigned TlsGdRelaxSkip = 1;
unsigned PageSize = 4096;
- unsigned MaxPageSize = 4096;
+ unsigned DefaultMaxPageSize = 4096;
// On FreeBSD x86_64 the first page cannot be mmaped.
// On Linux that is controled by vm.mmap_min_addr. At least on some x86_64
More information about the llvm-commits
mailing list