Index: lib/Driver/Tools.h |
diff --git a/lib/Driver/Tools.h b/lib/Driver/Tools.h |
index aa292bfdea9fc49571094d5b67e906542a63590b..4f7590ed3d5c9a829b47cca670ea66e6b0d10286 100644 |
--- a/lib/Driver/Tools.h |
+++ b/lib/Driver/Tools.h |
@@ -75,6 +75,8 @@ using llvm::opt::ArgStringList; |
llvm::opt::ArgStringList &CmdArgs) const; |
void AddHexagonTargetArgs(const llvm::opt::ArgList &Args, |
llvm::opt::ArgStringList &CmdArgs) const; |
+ void AddLe32TargetArgs(const llvm::opt::ArgList &Args, |
+ llvm::opt::ArgStringList &CmdArgs) const; |
enum RewriteKind { RK_None, RK_Fragile, RK_NonFragile }; |
@@ -536,6 +538,22 @@ namespace nacltools { |
}; |
} |
+namespace pnacltools { |
+ class LLVM_LIBRARY_VISIBILITY Link : public Tool { |
+ public: |
+ Link(const ToolChain &TC) : Tool("PNaCl::Link", "linker", TC) {} |
+ |
+ bool hasIntegratedCPP() const override { return false; } |
+ bool isLinkJob() const override { return true; } |
+ |
+ void ConstructJob(Compilation &C, const JobAction &JA, |
+ const InputInfo &Output, |
+ const InputInfoList &Inputs, |
+ const llvm::opt::ArgList &TCArgs, |
+ const char *LinkingOutput) const override; |
+ }; |
+} |
+ |
/// minix -- Directly call GNU Binutils assembler and linker |
namespace minix { |
class LLVM_LIBRARY_VISIBILITY Assemble : public GnuTool { |