[lld] r226261 - [ELF] s/_context/_ctx/ and clang-format the code
Simon Atanasyan
simon at atanasyan.com
Fri Jan 16 00:58:09 PST 2015
Author: atanasyan
Date: Fri Jan 16 02:58:09 2015
New Revision: 226261
URL: http://llvm.org/viewvc/llvm-project?rev=226261&view=rev
Log:
[ELF] s/_context/_ctx/ and clang-format the code
No functional changes.
Modified:
lld/trunk/lib/ReaderWriter/ELF/TargetHandler.h
Modified: lld/trunk/lib/ReaderWriter/ELF/TargetHandler.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/TargetHandler.h?rev=226261&r1=226260&r2=226261&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/TargetHandler.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/TargetHandler.h Fri Jan 16 02:58:09 2015
@@ -43,8 +43,7 @@ template <class ELFT> 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
More information about the llvm-commits
mailing list