summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/PPC/PPCLinkingContext.h
diff options
context:
space:
mode:
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/PPC/PPCLinkingContext.h')
-rw-r--r--lld/lib/ReaderWriter/ELF/PPC/PPCLinkingContext.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lld/lib/ReaderWriter/ELF/PPC/PPCLinkingContext.h b/lld/lib/ReaderWriter/ELF/PPC/PPCLinkingContext.h
index e5ea947a8b0..cd7a9f58c70 100644
--- a/lld/lib/ReaderWriter/ELF/PPC/PPCLinkingContext.h
+++ b/lld/lib/ReaderWriter/ELF/PPC/PPCLinkingContext.h
@@ -10,6 +10,7 @@
#ifndef LLD_READER_WRITER_ELF_PPC_PPC_LINKING_CONTEXT_H
#define LLD_READER_WRITER_ELF_PPC_PPC_LINKING_CONTEXT_H
+#include "PPCTargetHandler.h"
#include "lld/ReaderWriter/ELFLinkingContext.h"
#include "llvm/Object/ELF.h"
#include "llvm/Support/ELF.h"
@@ -19,7 +20,9 @@ namespace elf {
class PPCLinkingContext final : public ELFLinkingContext {
public:
- PPCLinkingContext(llvm::Triple triple);
+ PPCLinkingContext(llvm::Triple triple)
+ : ELFLinkingContext(triple, std::unique_ptr<TargetHandlerBase>(
+ new PPCTargetHandler(*this))) {}
/// \brief PPC has no relative relocations defined
bool isRelativeReloc(const Reference &) const override { return false; }
OpenPOWER on IntegriCloud