[lld] r274343 - Remove trailing whitespaces.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 1 03:42:25 PDT 2016
Author: ruiu
Date: Fri Jul 1 05:42:25 2016
New Revision: 274343
URL: http://llvm.org/viewvc/llvm-project?rev=274343&view=rev
Log:
Remove trailing whitespaces.
Modified:
lld/trunk/ELF/LinkerScript.cpp
lld/trunk/ELF/Writer.cpp
Modified: lld/trunk/ELF/LinkerScript.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.cpp?rev=274343&r1=274342&r2=274343&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Fri Jul 1 05:42:25 2016
@@ -221,7 +221,7 @@ void LinkerScript<ELFT>::assignAddresses
}
// Assign addresses as instructed by linker script SECTIONS sub-commands.
- Dot = Out<ELFT>::ElfHeader->getSize() + Out<ELFT>::ProgramHeaders->getSize();
+ Dot = Out<ELFT>::ElfHeader->getSize() + Out<ELFT>::ProgramHeaders->getSize();
uintX_t MinVA = std::numeric_limits<uintX_t>::max();
uintX_t ThreadBssOffset = 0;
@@ -249,13 +249,13 @@ void LinkerScript<ELFT>::assignAddresses
if (Sec->getFlags() & SHF_ALLOC) {
Dot = alignTo(Dot, Sec->getAlignment());
Sec->setVA(Dot);
- MinVA = std::min(MinVA, Dot);
+ MinVA = std::min(MinVA, Dot);
Dot += Sec->getSize();
continue;
}
}
}
-
+
// ELF and Program headers need to be right before the first section in memory.
// Set their addresses accordingly.
MinVA = alignDown(MinVA - Out<ELFT>::ElfHeader->getSize() -
Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=274343&r1=274342&r2=274343&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Fri Jul 1 05:42:25 2016
@@ -1131,9 +1131,9 @@ template <class ELFT> void Writer<ELFT>:
// list, but have them to simplify the code.
template <class ELFT> void Writer<ELFT>::fixHeaders() {
uintX_t BaseVA = ScriptConfig->DoLayout ? 0 : Target->getVAStart();
- Out<ELFT>::ElfHeader->setVA(BaseVA);
+ Out<ELFT>::ElfHeader->setVA(BaseVA);
uintX_t Off = Out<ELFT>::ElfHeader->getSize();
- Out<ELFT>::ProgramHeaders->setVA(Off + BaseVA);
+ Out<ELFT>::ProgramHeaders->setVA(Off + BaseVA);
}
// Assign VAs (addresses at run-time) to output sections.
More information about the llvm-commits
mailing list