summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2012-07-24 21:07:56 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2012-07-24 21:07:56 +0000
commit9669f749764997ab7033d5c4b0546fe739dd71d8 (patch)
tree5befe51cca5cd69fba964f10c59e6dcf6e24086c /include
parent8d32463a9fa2aba9de552350a5019099edf0b90d (diff)
downloadllvm-9669f749764997ab7033d5c4b0546fe739dd71d8.tar.gz
llvm-9669f749764997ab7033d5c4b0546fe739dd71d8.tar.bz2
llvm-9669f749764997ab7033d5c4b0546fe739dd71d8.tar.xz
[Object] Remove unneeded const_cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160692 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Object/ELF.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/Object/ELF.h b/include/llvm/Object/ELF.h
index 1b536f17bf..7698441fd1 100644
--- a/include/llvm/Object/ELF.h
+++ b/include/llvm/Object/ELF.h
@@ -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>