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/CompilationGraph.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/CompilationGraph.h')
| -rw-r--r-- | llvm/tools/llvmc2/CompilationGraph.h | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/llvm/tools/llvmc2/CompilationGraph.h b/llvm/tools/llvmc2/CompilationGraph.h index 91a9c77f9a5..6b2b290920b 100644 --- a/llvm/tools/llvmc2/CompilationGraph.h +++ b/llvm/tools/llvmc2/CompilationGraph.h @@ -16,6 +16,7 @@ #include "AutoGenerated.h" #include "Tool.h" +#include "StringSet.h" #include "llvm/ADT/GraphTraits.h" #include "llvm/ADT/IntrusiveRefCntPtr.h" @@ -29,21 +30,6 @@ namespace llvmc { - /// StringSet - A wrapper for StringMap that provides set-like - /// functionality. Only insert() and count() methods are used by my - /// code. - template <class AllocatorTy = llvm::MallocAllocator> - class StringSet : public llvm::StringMap<char, AllocatorTy> { - typedef llvm::StringMap<char, AllocatorTy> base; - public: - void insert (const std::string& InLang) { - assert(!InLang.empty()); - const char* KeyStart = &InLang[0]; - const char* KeyEnd = KeyStart + InLang.size(); - base::insert(llvm::StringMapEntry<char>:: - Create(KeyStart, KeyEnd, base::getAllocator(), '+')); - } - }; typedef StringSet<> InputLanguagesSet; /// Edge - Represents an edge of the compilation graph. |

