mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
[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:
parent
8d32463a9f
commit
9669f74976
@ -793,8 +793,7 @@ const typename ELFObjectFile<target_endianness, is64Bits>::Elf_Shdr *
|
|||||||
ELFObjectFile<target_endianness, is64Bits>
|
ELFObjectFile<target_endianness, is64Bits>
|
||||||
::getElfSection(section_iterator &It) const {
|
::getElfSection(section_iterator &It) const {
|
||||||
llvm::object::DataRefImpl ShdrRef = It->getRawDataRefImpl();
|
llvm::object::DataRefImpl ShdrRef = It->getRawDataRefImpl();
|
||||||
return const_cast<Elf_Shdr*>(reinterpret_cast<const Elf_Shdr *>
|
return reinterpret_cast<const Elf_Shdr *>(ShdrRef.p);
|
||||||
(ShdrRef.p));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
template<support::endianness target_endianness, bool is64Bits>
|
template<support::endianness target_endianness, bool is64Bits>
|
||||||
|
Loading…
Reference in New Issue
Block a user