summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.h
diff options
context:
space:
mode:
authorRobert Lytton <robert@xmos.com>2013-10-11 10:29:40 +0000
committerRobert Lytton <robert@xmos.com>2013-10-11 10:29:40 +0000
commitcf1dd692ae9ea626f08aada7e64c30a6f4354542 (patch)
tree21de039083e9b49fe072170ea7eac902cf528711 /clang/lib/Driver/Tools.h
parent2d1969584a85772e5e91c57339f1b9a87b8b5234 (diff)
downloadbcm5719-llvm-cf1dd692ae9ea626f08aada7e64c30a6f4354542.tar.gz
bcm5719-llvm-cf1dd692ae9ea626f08aada7e64c30a6f4354542.zip
XCore target: add an xcore toolchain implementation
llvm-svn: 192437
Diffstat (limited to 'clang/lib/Driver/Tools.h')
-rw-r--r--clang/lib/Driver/Tools.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/clang/lib/Driver/Tools.h b/clang/lib/Driver/Tools.h
index d6fddd9c044..4a0626d1846 100644
--- a/clang/lib/Driver/Tools.h
+++ b/clang/lib/Driver/Tools.h
@@ -627,6 +627,38 @@ namespace visualstudio {
};
} // end namespace visualstudio
+namespace XCore {
+ // For XCore, we do not need to instantiate tools for PreProcess, PreCompile and Compile.
+ // We simply use "clang -cc1" for those actions.
+ class LLVM_LIBRARY_VISIBILITY Assemble : public Tool {
+ public:
+ Assemble(const ToolChain &TC) : Tool("XCore::Assemble",
+ "XCore-as", TC) {}
+
+ virtual bool hasIntegratedCPP() const { return false; }
+ virtual void ConstructJob(Compilation &C, const JobAction &JA,
+ const InputInfo &Output,
+ const InputInfoList &Inputs,
+ const llvm::opt::ArgList &TCArgs,
+ const char *LinkingOutput) const;
+ };
+
+ class LLVM_LIBRARY_VISIBILITY Link : public Tool {
+ public:
+ Link(const ToolChain &TC) : Tool("XCore::Link",
+ "XCore-ld", TC) {}
+
+ virtual bool hasIntegratedCPP() const { return false; }
+ virtual bool isLinkJob() const { return true; }
+ virtual void ConstructJob(Compilation &C, const JobAction &JA,
+ const InputInfo &Output,
+ const InputInfoList &Inputs,
+ const llvm::opt::ArgList &TCArgs,
+ const char *LinkingOutput) const;
+ };
+} // end namespace XCore.
+
+
} // end namespace toolchains
} // end namespace driver
} // end namespace clang
OpenPOWER on IntegriCloud