[lld] r284687 - Remove std:: from std::size_t.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 19 18:33:10 PDT 2016
Author: ruiu
Date: Wed Oct 19 20:33:09 2016
New Revision: 284687
URL: http://llvm.org/viewvc/llvm-project?rev=284687&view=rev
Log:
Remove std:: from std::size_t.
Modified:
lld/trunk/ELF/ELFCreator.cpp
lld/trunk/ELF/ELFCreator.h
lld/trunk/ELF/InputFiles.cpp
lld/trunk/include/lld/Core/Parallel.h
Modified: lld/trunk/ELF/ELFCreator.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/ELFCreator.cpp?rev=284687&r1=284686&r2=284687&view=diff
==============================================================================
--- lld/trunk/ELF/ELFCreator.cpp (original)
+++ lld/trunk/ELF/ELFCreator.cpp Wed Oct 19 20:33:09 2016
@@ -74,7 +74,7 @@ typename ELFCreator<ELFT>::Symbol ELFCre
return {Sym, StaticSymbols.size()};
}
-template <class ELFT> std::size_t ELFCreator<ELFT>::layout() {
+template <class ELFT> size_t ELFCreator<ELFT>::layout() {
SecHdrStrTabBuilder.finalizeInOrder();
ShStrTab->sh_size = SecHdrStrTabBuilder.getSize();
Modified: lld/trunk/ELF/ELFCreator.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/ELFCreator.h?rev=284687&r1=284686&r2=284687&view=diff
==============================================================================
--- lld/trunk/ELF/ELFCreator.h (original)
+++ lld/trunk/ELF/ELFCreator.h Wed Oct 19 20:33:09 2016
@@ -27,18 +27,18 @@ template <class ELFT> class ELFCreator {
public:
struct Section {
Elf_Shdr *Header;
- std::size_t Index;
+ size_t Index;
};
struct Symbol {
Elf_Sym *Sym;
- std::size_t Index;
+ size_t Index;
};
ELFCreator(std::uint16_t Type, std::uint16_t Machine);
Section addSection(StringRef Name);
Symbol addSymbol(StringRef Name);
- std::size_t layout();
+ size_t layout();
void write(uint8_t *Out);
private:
Modified: lld/trunk/ELF/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.cpp?rev=284687&r1=284686&r2=284687&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.cpp (original)
+++ lld/trunk/ELF/InputFiles.cpp Wed Oct 19 20:33:09 2016
@@ -813,7 +813,7 @@ template <class ELFT> InputFile *BinaryF
SZSym.Sym->st_value = MB.getBufferSize();
// Fix the ELF file layout and write it down to ELFData uint8_t vector.
- std::size_t Size = ELF.layout();
+ size_t Size = ELF.layout();
ELFData.resize(Size);
ELF.write(ELFData.data());
Modified: lld/trunk/include/lld/Core/Parallel.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Core/Parallel.h?rev=284687&r1=284686&r2=284687&view=diff
==============================================================================
--- lld/trunk/include/lld/Core/Parallel.h (original)
+++ lld/trunk/include/lld/Core/Parallel.h Wed Oct 19 20:33:09 2016
@@ -121,7 +121,7 @@ public:
// Spawn all but one of the threads in another thread as spawning threads
// can take a while.
std::thread([&, threadCount] {
- for (std::size_t i = 1; i < threadCount; ++i) {
+ for (size_t i = 1; i < threadCount; ++i) {
std::thread([=] {
work();
}).detach();
More information about the llvm-commits
mailing list