aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvmc2/Tool.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/llvmc2/Tool.h')
-rw-r--r--tools/llvmc2/Tool.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/tools/llvmc2/Tool.h b/tools/llvmc2/Tool.h
index bfa7e46..3527817 100644
--- a/tools/llvmc2/Tool.h
+++ b/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;