[lld] r257080 - Remove unnecessary type casts.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 7 10:17:29 PST 2016
Author: ruiu
Date: Thu Jan 7 12:17:29 2016
New Revision: 257080
URL: http://llvm.org/viewvc/llvm-project?rev=257080&view=rev
Log:
Remove unnecessary type casts.
Modified:
lld/trunk/ELF/OutputSections.cpp
Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=257080&r1=257079&r2=257080&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Thu Jan 7 12:17:29 2016
@@ -1161,8 +1161,7 @@ template <class ELFT> void MergeOutputSe
template <class ELFT>
StringTableSection<ELFT>::StringTableSection(StringRef Name, bool Dynamic)
- : OutputSectionBase<ELFT>(Name, SHT_STRTAB,
- Dynamic ? (uintX_t)SHF_ALLOC : 0),
+ : OutputSectionBase<ELFT>(Name, SHT_STRTAB, Dynamic ? SHF_ALLOC : 0),
Dynamic(Dynamic) {
this->Header.sh_addralign = 1;
}
@@ -1235,7 +1234,7 @@ SymbolTableSection<ELFT>::SymbolTableSec
SymbolTable<ELFT> &Table, StringTableSection<ELFT> &StrTabSec)
: OutputSectionBase<ELFT>(StrTabSec.isDynamic() ? ".dynsym" : ".symtab",
StrTabSec.isDynamic() ? SHT_DYNSYM : SHT_SYMTAB,
- StrTabSec.isDynamic() ? (uintX_t)SHF_ALLOC : 0),
+ StrTabSec.isDynamic() ? SHF_ALLOC : 0),
Table(Table), StrTabSec(StrTabSec) {
typedef OutputSectionBase<ELFT> Base;
typename Base::Elf_Shdr &Header = this->Header;
More information about the llvm-commits
mailing list