projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d32463
)
[Object] Remove unneeded const_cast.
author
Michael J. Spencer
<bigcheesegs@gmail.com>
Tue, 24 Jul 2012 21:07:56 +0000
(21:07 +0000)
committer
Michael J. Spencer
<bigcheesegs@gmail.com>
Tue, 24 Jul 2012 21:07:56 +0000
(21:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160692
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Object/ELF.h
patch
|
blob
|
history
diff --git
a/include/llvm/Object/ELF.h
b/include/llvm/Object/ELF.h
index 1b536f17bff71e871be8e31584761d3d025447a5..7698441fd1cba91a21f2714cb36e4a8def45bbfb 100644
(file)
--- 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>