[lld] r234784 - Remove else after return.

Rui Ueyama ruiu at google.com
Mon Apr 13 12:56:08 PDT 2015


Author: ruiu
Date: Mon Apr 13 14:56:08 2015
New Revision: 234784

URL: http://llvm.org/viewvc/llvm-project?rev=234784&view=rev
Log:
Remove else after return.

Modified:
    lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonELFFile.h

Modified: lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonELFFile.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonELFFile.h?rev=234784&r1=234783&r2=234784&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonELFFile.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonELFFile.h Mon Apr 13 14:56:08 2015
@@ -31,11 +31,10 @@ public:
   DefinedAtom::ContentType contentType() const override {
     if (this->_contentType != DefinedAtom::typeUnknown)
       return this->_contentType;
-    else if (this->_section->sh_flags & llvm::ELF::SHF_HEX_GPREL) {
+    if (this->_section->sh_flags & llvm::ELF::SHF_HEX_GPREL) {
       if (this->_section->sh_type == llvm::ELF::SHT_NOBITS)
         return (this->_contentType = DefinedAtom::typeZeroFillFast);
-      else
-        return (this->_contentType = DefinedAtom::typeDataFast);
+      return (this->_contentType = DefinedAtom::typeDataFast);
     }
     return ELFDefinedAtom<ELFT>::contentType();
   }





More information about the llvm-commits mailing list