[lld] r231644 - [Mips] Rename local variables
Simon Atanasyan
simon at atanasyan.com
Mon Mar 9 03:53:58 PDT 2015
Author: atanasyan
Date: Mon Mar 9 05:53:58 2015
New Revision: 231644
URL: http://llvm.org/viewvc/llvm-project?rev=231644&view=rev
Log:
[Mips] Rename local variables
No functional changes.
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=231644&r1=231643&r2=231644&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp Mon Mar 9 05:53:58 2015
@@ -435,21 +435,20 @@ std::error_code MipsRelocationHandler<EL
uint8_t *atomContent = buf.getBufferStart() + atom._fileOffset;
uint8_t *location = atomContent + ref.offsetInAtom();
- uint64_t targetVAddress = writer.addressOfAtom(ref.target());
- uint64_t relocVAddress = atom._virtualAddr + ref.offsetInAtom();
+ uint64_t tgtAddr = writer.addressOfAtom(ref.target());
+ uint64_t relAddr = atom._virtualAddr + ref.offsetInAtom();
if (isMicroMipsAtom(ref.target()))
- targetVAddress |= 1;
+ tgtAddr |= 1;
- auto res =
- calculateRelocation(ref, targetVAddress, relocVAddress, gpAddr, isGpDisp);
+ auto res = calculateRelocation(ref, tgtAddr, relAddr, gpAddr, isGpDisp);
if (auto ec = res.getError())
return ec;
auto params = getRelocationParams(ref.kindValue());
uint64_t ins = relocRead<ELFT>(params, location);
- if (auto ec = adjustJumpOpCode(ins, targetVAddress, getCrossJumpMode(ref)))
+ if (auto ec = adjustJumpOpCode(ins, tgtAddr, getCrossJumpMode(ref)))
return ec;
ins = (ins & ~params._mask) | (*res & params._mask);
More information about the llvm-commits
mailing list