[lld] r295927 - Use uint64_t instead of ELFT*::uint.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 22 19:15:57 PST 2017
Author: ruiu
Date: Wed Feb 22 21:15:57 2017
New Revision: 295927
URL: http://llvm.org/viewvc/llvm-project?rev=295927&view=rev
Log:
Use uint64_t instead of ELFT*::uint.
This shouldn't change the meaning of the code.
Modified:
lld/trunk/ELF/SyntheticSections.cpp
lld/trunk/ELF/SyntheticSections.h
Modified: lld/trunk/ELF/SyntheticSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SyntheticSections.cpp?rev=295927&r1=295926&r2=295927&view=diff
==============================================================================
--- lld/trunk/ELF/SyntheticSections.cpp (original)
+++ lld/trunk/ELF/SyntheticSections.cpp Wed Feb 22 21:15:57 2017
@@ -290,9 +290,8 @@ template <class ELFT> InputSection<ELFT>
}
template <class ELFT>
-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<DefinedRegular<ELFT>>(Name, /*IsLocal*/ true, STV_DEFAULT,
Type, Value, Size, Section, nullptr);
if (In<ELFT>::SymTab)
@@ -2025,20 +2024,16 @@ template MergeInputSection<ELF64LE> *elf
template MergeInputSection<ELF64BE> *elf::createCommentSection();
template SymbolBody *elf::addSyntheticLocal<ELF32LE>(StringRef, uint8_t,
- ELF32LE::uint,
- ELF32LE::uint,
+ uint64_t, uint64_t,
InputSectionBase *);
template SymbolBody *elf::addSyntheticLocal<ELF32BE>(StringRef, uint8_t,
- ELF32BE::uint,
- ELF32BE::uint,
+ uint64_t, uint64_t,
InputSectionBase *);
template SymbolBody *elf::addSyntheticLocal<ELF64LE>(StringRef, uint8_t,
- ELF64LE::uint,
- ELF64LE::uint,
+ uint64_t, uint64_t,
InputSectionBase *);
template SymbolBody *elf::addSyntheticLocal<ELF64BE>(StringRef, uint8_t,
- ELF64BE::uint,
- ELF64BE::uint,
+ uint64_t, uint64_t,
InputSectionBase *);
template class elf::MipsAbiFlagsSection<ELF32LE>;
Modified: lld/trunk/ELF/SyntheticSections.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SyntheticSections.h?rev=295927&r1=295926&r2=295927&view=diff
==============================================================================
--- lld/trunk/ELF/SyntheticSections.h (original)
+++ lld/trunk/ELF/SyntheticSections.h Wed Feb 22 21:15:57 2017
@@ -747,9 +747,8 @@ template <class ELFT> InputSection<ELFT>
template <class ELFT> InputSection<ELFT> *createInterpSection();
template <class ELFT> MergeInputSection<ELFT> *createCommentSection();
template <class ELFT>
-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 <class ELFT> struct In {
More information about the llvm-commits
mailing list