From 837182ec1eff1c8249102e1b36dfb86a91393dc2 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Thu, 20 Oct 2016 01:33:09 +0000 Subject: [PATCH] Remove std:: from std::size_t. llvm-svn: 284687 --- lld/ELF/ELFCreator.cpp | 2 +- lld/ELF/ELFCreator.h | 6 +++--- lld/ELF/InputFiles.cpp | 2 +- lld/include/lld/Core/Parallel.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lld/ELF/ELFCreator.cpp b/lld/ELF/ELFCreator.cpp index bc6c5b4..3130d0d 100644 --- a/lld/ELF/ELFCreator.cpp +++ b/lld/ELF/ELFCreator.cpp @@ -74,7 +74,7 @@ typename ELFCreator::Symbol ELFCreator::addSymbol(StringRef Name) { return {Sym, StaticSymbols.size()}; } -template std::size_t ELFCreator::layout() { +template size_t ELFCreator::layout() { SecHdrStrTabBuilder.finalizeInOrder(); ShStrTab->sh_size = SecHdrStrTabBuilder.getSize(); diff --git a/lld/ELF/ELFCreator.h b/lld/ELF/ELFCreator.h index cfd84c5..9efe76e 100644 --- a/lld/ELF/ELFCreator.h +++ b/lld/ELF/ELFCreator.h @@ -27,18 +27,18 @@ template 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: diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index af0f30a..c70a850 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -813,7 +813,7 @@ template InputFile *BinaryFile::createELF() { 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()); diff --git a/lld/include/lld/Core/Parallel.h b/lld/include/lld/Core/Parallel.h index 2dde97d..0ceb3e6 100644 --- a/lld/include/lld/Core/Parallel.h +++ b/lld/include/lld/Core/Parallel.h @@ -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(); -- 2.7.4