summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
authorDouglas Katzman <dougk@google.com>2015-06-19 14:55:19 +0000
committerDouglas Katzman <dougk@google.com>2015-06-19 14:55:19 +0000
commit84a7564b28360843ee9afec5d3823c89623eb6a5 (patch)
treea247c458f5d2fab3633641a5797f9c0338b1771b /clang/lib/Driver/Driver.cpp
parent9fed25056675398c3df288c01c4aafce061be792 (diff)
downloadbcm5719-llvm-84a7564b28360843ee9afec5d3823c89623eb6a5.tar.gz
bcm5719-llvm-84a7564b28360843ee9afec5d3823c89623eb6a5.zip
Add nominal support for 'shave' target.
This change passes through C and assembler jobs to Movidius tools by constructing commands which are the same as ones produces by the examples in the SDK. But rather than reference MV_TOOLS_DIR to find tools, we will assume that binaries are installed wherever the Driver would find its native tools. Similarly, this change assumes that -I options will "just work" based on where SDK headers get installed, rather than baking into the Driver some magic paths. Differential Revision: http://reviews.llvm.org/D10440 llvm-svn: 240134
Diffstat (limited to 'clang/lib/Driver/Driver.cpp')
-rw-r--r--clang/lib/Driver/Driver.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index b1eba72622d..1c6f4d1e097 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -2106,6 +2106,8 @@ const ToolChain &Driver::getToolChain(const ArgList &Args,
TC = new toolchains::Hexagon_TC(*this, Target, Args);
else if (Target.getArch() == llvm::Triple::xcore)
TC = new toolchains::XCore(*this, Target, Args);
+ else if (Target.getArch() == llvm::Triple::shave)
+ TC = new toolchains::SHAVEToolChain(*this, Target, Args);
else if (Target.isOSBinFormatELF())
TC = new toolchains::Generic_ELF(*this, Target, Args);
else if (Target.isOSBinFormatMachO())
OpenPOWER on IntegriCloud