[llvm-commits] [llvm] r160692 - /llvm/trunk/include/llvm/Object/ELF.h
Michael J. Spencer
bigcheesegs at gmail.com
Tue Jul 24 14:07:56 PDT 2012
Author: mspencer
Date: Tue Jul 24 16:07:56 2012
New Revision: 160692
URL: http://llvm.org/viewvc/llvm-project?rev=160692&view=rev
Log:
[Object] Remove unneeded const_cast.
Modified:
llvm/trunk/include/llvm/Object/ELF.h
Modified: llvm/trunk/include/llvm/Object/ELF.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/ELF.h?rev=160692&r1=160691&r2=160692&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/ELF.h (original)
+++ llvm/trunk/include/llvm/Object/ELF.h Tue Jul 24 16:07:56 2012
@@ -793,8 +793,7 @@
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>
More information about the llvm-commits
mailing list