diff options
| author | Mikhail Glushenkov <foldr@codedgers.com> | 2008-05-30 06:10:19 +0000 |
|---|---|---|
| committer | Mikhail Glushenkov <foldr@codedgers.com> | 2008-05-30 06:10:19 +0000 |
| commit | e57a4033385c5976cbb17af1e962b1224a61183b (patch) | |
| tree | d619dbbe151a3c396219027db977dd59da3627de /llvm/tools/llvmc2/Tool.h | |
| parent | 8fedbb7b02e83e7069557230500df7e3f05fe2f1 (diff) | |
| download | bcm5719-llvm-e57a4033385c5976cbb17af1e962b1224a61183b.tar.gz bcm5719-llvm-e57a4033385c5976cbb17af1e962b1224a61183b.zip | |
Make it possible to use the generalised 'case' construct in the cmd_line property.
llvm-svn: 51728
Diffstat (limited to 'llvm/tools/llvmc2/Tool.h')
| -rw-r--r-- | llvm/tools/llvmc2/Tool.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/llvm/tools/llvmc2/Tool.h b/llvm/tools/llvmc2/Tool.h index bfa7e46f9e8..3527817026d 100644 --- a/llvm/tools/llvmc2/Tool.h +++ b/llvm/tools/llvmc2/Tool.h @@ -15,6 +15,7 @@ #define LLVM_TOOLS_LLVMC2_TOOL_H #include "Action.h" +#include "StringSet.h" #include "llvm/ADT/IntrusiveRefCntPtr.h" #include "llvm/System/Path.h" @@ -33,10 +34,12 @@ namespace llvmc { virtual ~Tool() {} virtual Action GenerateAction (const PathVector& inFiles, - const llvm::sys::Path& outFile) const = 0; + const llvm::sys::Path& outFile, + const StringSet<>& InLangs) const = 0; virtual Action GenerateAction (const llvm::sys::Path& inFile, - const llvm::sys::Path& outFile) const = 0; + const llvm::sys::Path& outFile, + const StringSet<>& InLangs) const = 0; virtual const char* Name() const = 0; virtual const char* InputLanguage() const = 0; @@ -54,8 +57,10 @@ namespace llvmc { void ClearJoinList() { JoinList_.clear(); } bool JoinListEmpty() const { return JoinList_.empty(); } - Action GenerateAction(const llvm::sys::Path& outFile) const - { return GenerateAction(JoinList_, outFile); } + Action GenerateAction(const llvm::sys::Path& outFile, + const StringSet<>& InLangs) const { + return GenerateAction(JoinList_, outFile, InLangs); + } // We shouldn't shadow base class's version of GenerateAction. using Tool::GenerateAction; |

