mirror of
https://github.com/intel/llvm.git
synced 2026-01-24 00:20:25 +08:00
Change the order of parameters. NFC.
If a function takes a size and an alignment, we usually pass them in that order instead of the reverse order. llvm-svn: 298968
This commit is contained in:
@@ -455,7 +455,7 @@ template <class ELFT> static void addCopyRelSymbol(SharedSymbol *SS) {
|
||||
// memory protection by reserving space in the .bss.rel.ro section.
|
||||
bool IsReadOnly = isReadOnly<ELFT>(SS);
|
||||
BssSection *Sec = IsReadOnly ? In<ELFT>::BssRelRo : In<ELFT>::Bss;
|
||||
uintX_t Off = Sec->reserveSpace(SS->getAlignment<ELFT>(), SymSize);
|
||||
uintX_t Off = Sec->reserveSpace(SymSize, SS->getAlignment<ELFT>());
|
||||
|
||||
// Look through the DSO's dynamic symbol table for aliases and create a
|
||||
// dynamic symbol for each one. This causes the copy relocation to correctly
|
||||
|
||||
Reference in New Issue
Block a user