diff options
| author | Mikhail Glushenkov <foldr@codedgers.com> | 2008-05-30 06:11:18 +0000 |
|---|---|---|
| committer | Mikhail Glushenkov <foldr@codedgers.com> | 2008-05-30 06:11:18 +0000 |
| commit | a06c516cad9016f6b1d48bd0651a04fc789c6fa4 (patch) | |
| tree | e8d313596606ed21c2b9bc668c4c0e0934a6abaa /llvm/tools/llvmc2/Tool.h | |
| parent | f1c87ff378b97551b381741c8f9cde311bf27a2c (diff) | |
| download | bcm5719-llvm-a06c516cad9016f6b1d48bd0651a04fc789c6fa4.tar.gz bcm5719-llvm-a06c516cad9016f6b1d48bd0651a04fc789c6fa4.zip | |
Update the code to the fact that StringSet now lives in llvm/ADT.
llvm-svn: 51730
Diffstat (limited to 'llvm/tools/llvmc2/Tool.h')
| -rw-r--r-- | llvm/tools/llvmc2/Tool.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/tools/llvmc2/Tool.h b/llvm/tools/llvmc2/Tool.h index 3527817026d..294c6fb9b3b 100644 --- a/llvm/tools/llvmc2/Tool.h +++ b/llvm/tools/llvmc2/Tool.h @@ -15,9 +15,9 @@ #define LLVM_TOOLS_LLVMC2_TOOL_H #include "Action.h" -#include "StringSet.h" #include "llvm/ADT/IntrusiveRefCntPtr.h" +#include "llvm/ADT/StringSet.h" #include "llvm/System/Path.h" #include <string> @@ -26,6 +26,7 @@ namespace llvmc { typedef std::vector<llvm::sys::Path> PathVector; + typedef llvm::StringSet<> InputLanguagesSet; /// Tool - A class class Tool : public llvm::RefCountedBaseVPTR<Tool> { @@ -35,11 +36,11 @@ namespace llvmc { virtual Action GenerateAction (const PathVector& inFiles, const llvm::sys::Path& outFile, - const StringSet<>& InLangs) const = 0; + const InputLanguagesSet& InLangs) const = 0; virtual Action GenerateAction (const llvm::sys::Path& inFile, const llvm::sys::Path& outFile, - const StringSet<>& InLangs) const = 0; + const InputLanguagesSet& InLangs) const = 0; virtual const char* Name() const = 0; virtual const char* InputLanguage() const = 0; @@ -58,7 +59,7 @@ namespace llvmc { bool JoinListEmpty() const { return JoinList_.empty(); } Action GenerateAction(const llvm::sys::Path& outFile, - const StringSet<>& InLangs) const { + const InputLanguagesSet& InLangs) const { return GenerateAction(JoinList_, outFile, InLangs); } // We shouldn't shadow base class's version of GenerateAction. |

