diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-03-17 22:07:58 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-03-17 22:07:58 +0000 |
commit | 9c073ff462eb75ccbb1c4446e21c148f3fc618e1 (patch) | |
tree | 07945fc0b1ec0a34667720351d7da5061a09ecb1 | |
parent | 670b7f4fe6720e91520ec5a993b33c00058ed77a (diff) |
Driver: Stub out generic GCC tool selection (missed a file)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67109 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Driver/Tools.h | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/lib/Driver/Tools.h b/lib/Driver/Tools.h new file mode 100644 index 0000000000..71ca2e9008 --- /dev/null +++ b/lib/Driver/Tools.h @@ -0,0 +1,79 @@ +//===--- Tools.h - Tool Implementations -------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#ifndef CLANG_LIB_DRIVER_TOOLS_H_ +#define CLANG_LIB_DRIVER_TOOLS_H_ + +#include "clang/Driver/Tool.h" + +#include "llvm/Support/Compiler.h" + +namespace clang { +namespace driver { +namespace tools VISIBILITY_HIDDEN { + + class Clang : public Tool { + public: + Clang(const ToolChain &TC) : Tool(TC) {} + + virtual bool acceptsPipedInput() const { return true; } + virtual bool canPipeOutput() const { return true; } + virtual bool hasIntegratedCPP() const { return true; } + }; + + class GCC_Preprocess : public Tool { + public: + GCC_Preprocess(const ToolChain &TC) : Tool(TC) {} + + virtual bool acceptsPipedInput() const { return true; } + virtual bool canPipeOutput() const { return true; } + virtual bool hasIntegratedCPP() const { return false; } + }; + + class GCC_Precompile : public Tool { + public: + GCC_Precompile(const ToolChain &TC) : Tool(TC) {} + + virtual bool acceptsPipedInput() const { return true; } + virtual bool canPipeOutput() const { return false; } + virtual bool hasIntegratedCPP() const { return true; } + }; + + class GCC_Compile : public Tool { + public: + GCC_Compile(const ToolChain &TC) : Tool(TC) {} + + virtual bool acceptsPipedInput() const { return true; } + virtual bool canPipeOutput() const { return true; } + virtual bool hasIntegratedCPP() const { return true; } + }; + + class GCC_Assemble : public Tool { + public: + GCC_Assemble(const ToolChain &TC) : Tool(TC) {} + + virtual bool acceptsPipedInput() const { return true; } + virtual bool canPipeOutput() const { return false; } + virtual bool hasIntegratedCPP() const { return false; } + }; + + class GCC_Link : public Tool { + public: + GCC_Link(const ToolChain &TC) : Tool(TC) {} + + virtual bool acceptsPipedInput() const { return false; } + virtual bool canPipeOutput() const { return false; } + virtual bool hasIntegratedCPP() const { return false; } + }; + +} // end namespace toolchains +} // end namespace driver +} // end namespace clang + +#endif |