//===- lld/ReaderWriter/ELF/AMDGPU/AMDGPURelocationHandler.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_AMDGPU_AMDGPU_RELOCATION_HANDLER_H
#define LLD_READER_WRITER_ELF_AMDGPU_AMDGPU_RELOCATION_HANDLER_H

#include "lld/ReaderWriter/ELFLinkingContext.h"
#include <system_error>

namespace lld {
namespace elf {
class AMDGPUTargetHandler;
class AMDGPUTargetLayout;

class AMDGPUTargetRelocationHandler final : public TargetRelocationHandler {
public:
  AMDGPUTargetRelocationHandler(AMDGPUTargetLayout &layout) { }

  std::error_code applyRelocation(ELFWriter &, llvm::FileOutputBuffer &,
                                  const AtomLayout &,
                                  const Reference &) const override;

};
} // elf
} // lld
#endif

//===- lld/ReaderWriter/ELF/AMDGPU/AMDGPURelocationHandler.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_AMDGPU_AMDGPU_RELOCATION_HANDLER_H
#define LLD_READER_WRITER_ELF_AMDGPU_AMDGPU_RELOCATION_HANDLER_H

#include "lld/ReaderWriter/ELFLinkingContext.h"
#include <system_error>

namespace lld {
namespace elf {
class AMDGPUTargetHandler;
class AMDGPUTargetLayout;

class AMDGPUTargetRelocationHandler final : public TargetRelocationHandler {
public:
  AMDGPUTargetRelocationHandler(AMDGPUTargetLayout &layout)
      : _targetLayout(layout) {}

  std::error_code applyRelocation(ELFWriter &, llvm::FileOutputBuffer &,
                                  const AtomLayout &,
                                  const Reference &) const override;

private:
  AMDGPUTargetLayout &_targetLayout;
};
} // elf
} // lld
#endif

--- 
+++ 
@@ -19,15 +19,12 @@
 
 class AMDGPUTargetRelocationHandler final : public TargetRelocationHandler {
 public:
-  AMDGPUTargetRelocationHandler(AMDGPUTargetLayout &layout)
-      : _targetLayout(layout) {}
+  AMDGPUTargetRelocationHandler(AMDGPUTargetLayout &layout) { }
 
   std::error_code applyRelocation(ELFWriter &, llvm::FileOutputBuffer &,
                                   const AtomLayout &,
                                   const Reference &) const override;
 
-private:
-  AMDGPUTargetLayout &_targetLayout;
 };
 } // elf
 } // lld
ELF/AMDGPU: Remove another unused private member variable

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