//===- lld/ReaderWriter/ELF/Mips/MipsRelocationHandler.h ------------------===//
//
//                             The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef LLD_READER_WRITER_ELF_MIPS_MIPS_RELOCATION_HANDLER_H
#define LLD_READER_WRITER_ELF_MIPS_MIPS_RELOCATION_HANDLER_H

#include "TargetHandler.h"
#include "lld/Core/Reference.h"

namespace lld {
namespace elf {

template<typename ELFT> class MipsTargetLayout;

class MipsRelocationHandler : public TargetRelocationHandler {
public:
  virtual Reference::Addend readAddend(Reference::KindValue kind,
                                       const uint8_t *content) const = 0;
};

template <class ELFT>
std::unique_ptr<TargetRelocationHandler>
createMipsRelocationHandler(MipsLinkingContext &ctx,
                            MipsTargetLayout<ELFT> &layout);

} // elf
} // lld

#endif

//===- lld/ReaderWriter/ELF/Mips/MipsRelocationHandler.h ------------------===//
//
//                             The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef LLD_READER_WRITER_ELF_MIPS_MIPS_RELOCATION_HANDLER_H
#define LLD_READER_WRITER_ELF_MIPS_MIPS_RELOCATION_HANDLER_H

#include "TargetHandler.h"
#include "lld/Core/Reference.h"

namespace lld {
namespace elf {

template<typename ELFT> class MipsTargetLayout;

class MipsRelocationHandler : public TargetRelocationHandler {
public:
  virtual Reference::Addend readAddend(Reference::KindValue kind,
                                       const uint8_t *content) const = 0;
};

template <class ELFT>
std::unique_ptr<TargetRelocationHandler>
createMipsRelocationHandler(MipsLinkingContext &ctx, MipsTargetLayout<ELFT> &layout);

} // elf
} // lld

#endif

--- 
+++ 
@@ -25,7 +25,8 @@
 
 template <class ELFT>
 std::unique_ptr<TargetRelocationHandler>
-createMipsRelocationHandler(MipsLinkingContext &ctx, MipsTargetLayout<ELFT> &layout);
+createMipsRelocationHandler(MipsLinkingContext &ctx,
+                            MipsTargetLayout<ELFT> &layout);
 
 } // elf
 } // lld
[Mips] Reformat the code with clang-format

git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@234153 91177308-0d34-0410-b5e6-96231b3b80d8
