[ELF] s/_context/_ctx/ and clang-format the code
authorSimon Atanasyan <simon@atanasyan.com>
Fri, 16 Jan 2015 08:58:09 +0000 (08:58 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Fri, 16 Jan 2015 08:58:09 +0000 (08:58 +0000)
No functional changes.

llvm-svn: 226261

lld/lib/ReaderWriter/ELF/TargetHandler.h

index 34efc79..943d957 100644 (file)
@@ -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