summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/Mips/MipsSectionChunks.h
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-03-27 01:36:17 +0000
committerRui Ueyama <ruiu@google.com>2015-03-27 01:36:17 +0000
commitc9ee4de6ca41023b9231c234917d284ee8e87da9 (patch)
tree3cc903d7c809d4eabbd48720e5ba6ecbaca587e8 /lld/lib/ReaderWriter/ELF/Mips/MipsSectionChunks.h
parent12c8f6540886bcf7d375f42c334f6034f56aa439 (diff)
downloadbcm5719-llvm-c9ee4de6ca41023b9231c234917d284ee8e87da9.tar.gz
bcm5719-llvm-c9ee4de6ca41023b9231c234917d284ee8e87da9.zip
Rename ELFLinkingContext instances "ctx" intead of "context".
llvm-svn: 233344
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/Mips/MipsSectionChunks.h')
-rw-r--r--lld/lib/ReaderWriter/ELF/Mips/MipsSectionChunks.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/lib/ReaderWriter/ELF/Mips/MipsSectionChunks.h b/lld/lib/ReaderWriter/ELF/Mips/MipsSectionChunks.h
index de9390f2b30..fce2a15e8c9 100644
--- a/lld/lib/ReaderWriter/ELF/Mips/MipsSectionChunks.h
+++ b/lld/lib/ReaderWriter/ELF/Mips/MipsSectionChunks.h
@@ -139,9 +139,9 @@ template <class ELFT> class MipsRelocationTable : public RelocationTable<ELFT> {
ELFT::Is64Bits && ELFT::TargetEndianness == llvm::support::little;
public:
- MipsRelocationTable(const ELFLinkingContext &context, StringRef str,
+ MipsRelocationTable(const ELFLinkingContext &ctx, StringRef str,
int32_t order)
- : RelocationTable<ELFT>(context, str, order) {}
+ : RelocationTable<ELFT>(ctx, str, order) {}
protected:
void writeRela(ELFWriter *writer, Elf_Rela &r, const DefinedAtom &atom,
@@ -150,7 +150,7 @@ protected:
r.setSymbolAndType(this->getSymbolIndex(ref.target()), rType, _isMips64EL);
r.r_offset = writer->addressOfAtom(&atom) + ref.offsetInAtom();
// The addend is used only by relative relocations
- if (this->_context.isRelativeReloc(ref))
+ if (this->_ctx.isRelativeReloc(ref))
r.r_addend = writer->addressOfAtom(ref.target()) + ref.addend();
else
r.r_addend = 0;
OpenPOWER on IntegriCloud