[llvm] r205572 - Reuse existing variable.
Rafael Espindola
rafael.espindola at gmail.com
Thu Apr 3 14:48:42 PDT 2014
Author: rafael
Date: Thu Apr 3 16:48:41 2014
New Revision: 205572
URL: http://llvm.org/viewvc/llvm-project?rev=205572&view=rev
Log:
Reuse existing variable.
Modified:
llvm/trunk/include/llvm/Object/ELFObjectFile.h
Modified: llvm/trunk/include/llvm/Object/ELFObjectFile.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/ELFObjectFile.h?rev=205572&r1=205571&r2=205572&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/ELFObjectFile.h (original)
+++ llvm/trunk/include/llvm/Object/ELFObjectFile.h Thu Apr 3 16:48:41 2014
@@ -256,8 +256,7 @@ error_code ELFObjectFile<ELFT>::getSymbo
Result = ESym->st_value;
// Clear the ARM/Thumb indicator flag.
- if (EF.getHeader()->e_machine == ELF::EM_ARM &&
- ESym->getType() == ELF::STT_FUNC)
+ if (Header->e_machine == ELF::EM_ARM && ESym->getType() == ELF::STT_FUNC)
Result &= ~1;
if (Header->e_type == ELF::ET_REL)
More information about the llvm-commits
mailing list