summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/Hexagon/HexagonLinkingContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/Hexagon/HexagonLinkingContext.cpp')
-rw-r--r--lld/lib/ReaderWriter/ELF/Hexagon/HexagonLinkingContext.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lld/lib/ReaderWriter/ELF/Hexagon/HexagonLinkingContext.cpp b/lld/lib/ReaderWriter/ELF/Hexagon/HexagonLinkingContext.cpp
index 9f539a8da87..ceab5d3c031 100644
--- a/lld/lib/ReaderWriter/ELF/Hexagon/HexagonLinkingContext.cpp
+++ b/lld/lib/ReaderWriter/ELF/Hexagon/HexagonLinkingContext.cpp
@@ -9,6 +9,7 @@
#include "Atoms.h"
#include "HexagonLinkingContext.h"
+#include "HexagonTargetHandler.h"
#include "lld/Core/File.h"
#include "lld/Core/Pass.h"
@@ -101,3 +102,7 @@ void elf::HexagonLinkingContext::createInternalFiles(
initFiniFile->addFiniFunction(ai);
result.push_back(std::move(initFiniFile));
}
+
+HexagonLinkingContext::HexagonLinkingContext(llvm::Triple triple)
+ : ELFLinkingContext(triple, std::unique_ptr<TargetHandlerBase>(
+ new HexagonTargetHandler(*this))) {}
OpenPOWER on IntegriCloud