From 49a055336b9db1993c5472861c409589b49fea03 Mon Sep 17 00:00:00 2001 From: Simon Atanasyan Date: Fri, 16 Jan 2015 08:58:09 +0000 Subject: [PATCH] [ELF] s/_context/_ctx/ and clang-format the code No functional changes. llvm-svn: 226261 --- lld/lib/ReaderWriter/ELF/TargetHandler.h | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/lld/lib/ReaderWriter/ELF/TargetHandler.h b/lld/lib/ReaderWriter/ELF/TargetHandler.h index 34efc79..943d957 100644 --- a/lld/lib/ReaderWriter/ELF/TargetHandler.h +++ b/lld/lib/ReaderWriter/ELF/TargetHandler.h @@ -43,8 +43,7 @@ template class TargetLayout; class TargetRelocationHandler { public: /// Constructor - TargetRelocationHandler(ELFLinkingContext &targetInfo) - : _context(targetInfo) {} + TargetRelocationHandler(ELFLinkingContext &targetInfo) : _ctx(targetInfo) {} virtual ~TargetRelocationHandler() {} virtual std::error_code applyRelocation(ELFWriter &, llvm::FileOutputBuffer &, @@ -55,14 +54,12 @@ protected: void unhandledReferenceType(const Atom &atom, const Reference &ref) const { llvm::errs() << "Unhandled reference type in file " << atom.file().path() << ": reference from " << atom.name() << "+" - << ref.offsetInAtom() << " to " << ref.target()->name() - << "+" << ref.addend() << " of type "; + << ref.offsetInAtom() << " to " << ref.target()->name() << "+" + << ref.addend() << " of type "; StringRef kindValStr; - if (!_context.registry().referenceKindToString(ref.kindNamespace(), - ref.kindArch(), - ref.kindValue(), - kindValStr)) { + if (!_ctx.registry().referenceKindToString( + ref.kindNamespace(), ref.kindArch(), ref.kindValue(), kindValStr)) { kindValStr = "unknown"; } @@ -71,7 +68,7 @@ protected: } private: - ELFLinkingContext &_context; + ELFLinkingContext &_ctx; }; /// \brief TargetHandler contains all the information responsible to handle a -- 2.7.4