[lld] r204248 - [Mips] Remove unused function.

Simon Atanasyan simon at atanasyan.com
Wed Mar 19 09:05:32 PDT 2014


Author: atanasyan
Date: Wed Mar 19 11:05:32 2014
New Revision: 204248

URL: http://llvm.org/viewvc/llvm-project?rev=204248&view=rev
Log:
[Mips] Remove unused function.

Modified:
    lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp

Modified: lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp?rev=204248&r1=204247&r2=204248&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp Wed Mar 19 11:05:32 2014
@@ -25,13 +25,6 @@ void applyReloc(uint8_t *loc, uint32_t r
   *target = (uint32_t(*target) & ~mask) | (result & mask);
 }
 
-/// \brief Calculate AHL value combines addends from 'hi' and 'lo' relocations.
-inline int64_t calcAHL(int64_t AHI, int64_t ALO) {
-  AHI &= 0xffff;
-  ALO &= 0xffff;
-  return (AHI << 16) + (int16_t)ALO;
-}
-
 template <size_t BITS, class T> inline T signExtend(T val) {
   if (val & (T(1) << (BITS - 1)))
     val |= T(-1) << BITS;





More information about the llvm-commits mailing list