summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/PPC/PPCTargetHandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/PPC/PPCTargetHandler.h')
-rw-r--r--lld/lib/ReaderWriter/ELF/PPC/PPCTargetHandler.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/lld/lib/ReaderWriter/ELF/PPC/PPCTargetHandler.h b/lld/lib/ReaderWriter/ELF/PPC/PPCTargetHandler.h
index 3ab071a9d48..185ef79c0cf 100644
--- a/lld/lib/ReaderWriter/ELF/PPC/PPCTargetHandler.h
+++ b/lld/lib/ReaderWriter/ELF/PPC/PPCTargetHandler.h
@@ -16,25 +16,26 @@
namespace lld {
namespace elf {
typedef llvm::object::ELFType<llvm::support::big, 4, false> PPCELFType;
-class PPCTargetInfo;
+class PPCLinkingContext;
class PPCTargetRelocationHandler LLVM_FINAL
: public TargetRelocationHandler<PPCELFType> {
public:
- PPCTargetRelocationHandler(const PPCTargetInfo &ti) : _targetInfo(ti) {}
+ PPCTargetRelocationHandler(const PPCLinkingContext &context)
+ : _context(context) {}
virtual ErrorOr<void> applyRelocation(ELFWriter &, llvm::FileOutputBuffer &,
const lld::AtomLayout &,
const Reference &)const;
private:
- const PPCTargetInfo &_targetInfo;
+ const PPCLinkingContext &_context;
};
class PPCTargetHandler LLVM_FINAL
: public DefaultTargetHandler<PPCELFType> {
public:
- PPCTargetHandler(PPCTargetInfo &targetInfo);
+ PPCTargetHandler(PPCLinkingContext &targetInfo);
virtual TargetLayout<PPCELFType> &targetLayout() {
return _targetLayout;
OpenPOWER on IntegriCloud