From 65316d7b36107395c4fc4736495077b025bca518 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Thu, 23 Feb 2017 03:15:57 +0000 Subject: [PATCH] Use uint64_t instead of ELFT*::uint. This shouldn't change the meaning of the code. llvm-svn: 295927 --- lld/ELF/SyntheticSections.cpp | 17 ++++++----------- lld/ELF/SyntheticSections.h | 5 ++--- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/lld/ELF/SyntheticSections.cpp b/lld/ELF/SyntheticSections.cpp index bec6240ff7c7..e5a2df0ddd19 100644 --- a/lld/ELF/SyntheticSections.cpp +++ b/lld/ELF/SyntheticSections.cpp @@ -290,9 +290,8 @@ template InputSection *elf::createInterpSection() { } template -SymbolBody * -elf::addSyntheticLocal(StringRef Name, uint8_t Type, typename ELFT::uint Value, - typename ELFT::uint Size, InputSectionBase *Section) { +SymbolBody *elf::addSyntheticLocal(StringRef Name, uint8_t Type, uint64_t Value, + uint64_t Size, InputSectionBase *Section) { auto *S = make>(Name, /*IsLocal*/ true, STV_DEFAULT, Type, Value, Size, Section, nullptr); if (In::SymTab) @@ -2025,20 +2024,16 @@ template MergeInputSection *elf::createCommentSection(); template MergeInputSection *elf::createCommentSection(); template SymbolBody *elf::addSyntheticLocal(StringRef, uint8_t, - ELF32LE::uint, - ELF32LE::uint, + uint64_t, uint64_t, InputSectionBase *); template SymbolBody *elf::addSyntheticLocal(StringRef, uint8_t, - ELF32BE::uint, - ELF32BE::uint, + uint64_t, uint64_t, InputSectionBase *); template SymbolBody *elf::addSyntheticLocal(StringRef, uint8_t, - ELF64LE::uint, - ELF64LE::uint, + uint64_t, uint64_t, InputSectionBase *); template SymbolBody *elf::addSyntheticLocal(StringRef, uint8_t, - ELF64BE::uint, - ELF64BE::uint, + uint64_t, uint64_t, InputSectionBase *); template class elf::MipsAbiFlagsSection; diff --git a/lld/ELF/SyntheticSections.h b/lld/ELF/SyntheticSections.h index f8d5dce4d5a6..3812636ac042 100644 --- a/lld/ELF/SyntheticSections.h +++ b/lld/ELF/SyntheticSections.h @@ -747,9 +747,8 @@ template InputSection *createCommonSection(); template InputSection *createInterpSection(); template MergeInputSection *createCommentSection(); template -SymbolBody * -addSyntheticLocal(StringRef Name, uint8_t Type, typename ELFT::uint Value, - typename ELFT::uint Size, InputSectionBase *Section); +SymbolBody *addSyntheticLocal(StringRef Name, uint8_t Type, uint64_t Value, + uint64_t Size, InputSectionBase *Section); // Linker generated sections which can be used as inputs. template struct In {