summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/Hexagon/HexagonLinkingContext.cpp
diff options
context:
space:
mode:
authorShankar Easwaran <shankare@codeaurora.org>2014-01-27 01:02:03 +0000
committerShankar Easwaran <shankare@codeaurora.org>2014-01-27 01:02:03 +0000
commite7b831ad354c74ef9fb12b8501e4c5de676a2bc6 (patch)
treedd5307b45131ff4c4f907f7ec3417f80208e6ee6 /lld/lib/ReaderWriter/ELF/Hexagon/HexagonLinkingContext.cpp
parent51577b66ce478fafc3cbd7614255742ceff65237 (diff)
downloadbcm5719-llvm-e7b831ad354c74ef9fb12b8501e4c5de676a2bc6.tar.gz
bcm5719-llvm-e7b831ad354c74ef9fb12b8501e4c5de676a2bc6.zip
[ELF] Add Target specific Readers.
No change in functionality. llvm-svn: 200175
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