git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160692
91177308-0d34-0410-b5e6-
96231b3b80d8
ELFObjectFile<target_endianness, is64Bits>
::getElfSection(section_iterator &It) const {
llvm::object::DataRefImpl ShdrRef = It->getRawDataRefImpl();
ELFObjectFile<target_endianness, is64Bits>
::getElfSection(section_iterator &It) const {
llvm::object::DataRefImpl ShdrRef = It->getRawDataRefImpl();
- return const_cast<Elf_Shdr*>(reinterpret_cast<const Elf_Shdr *>
- (ShdrRef.p));
+ return reinterpret_cast<const Elf_Shdr *>(ShdrRef.p);
}
template<support::endianness target_endianness, bool is64Bits>
}
template<support::endianness target_endianness, bool is64Bits>