[Object] Remove unneeded const_cast.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160692 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Michael J. Spencer 2012-07-24 21:07:56 +00:00
parent 8d32463a9f
commit 9669f74976

View File

@ -793,8 +793,7 @@ const typename ELFObjectFile<target_endianness, is64Bits>::Elf_Shdr *
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>