diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2008-05-06 16:34:12 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2008-05-06 16:34:12 +0000 |
commit | b90cd834ca5a849fcfcb6bbca5d38f73f5c37fcf (patch) | |
tree | 06d11382719346c723e1b8ec588232fd39bd34da /tools/llvmc2/CompilationGraph.h | |
parent | c8d9fe6bf92ac5a7ee48c328cd412bf052e6b07b (diff) |
Code reorg
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50722 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc2/CompilationGraph.h')
-rw-r--r-- | tools/llvmc2/CompilationGraph.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tools/llvmc2/CompilationGraph.h b/tools/llvmc2/CompilationGraph.h new file mode 100644 index 0000000000..c34b58ff5e --- /dev/null +++ b/tools/llvmc2/CompilationGraph.h @@ -0,0 +1,36 @@ +//===--- CompilationGraph.h - The LLVM Compiler Driver ----------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open +// Source License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Compilation graph - definition. +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_TOOLS_LLVMC2_COMPILATION_GRAPH_H +#define LLVM_TOOLS_LLVMC2_COMPILATION_GRAPH_H + +#include "AutoGenerated.h" +#include "Tool.h" + +#include "llvm/ADT/StringMap.h" +#include "llvm/System/Path.h" + +namespace llvmcc { + + typedef std::vector<llvm::IntrusiveRefCntPtr<Tool> > ToolChain; + typedef llvm::StringMap<ToolChain> ToolChainMap; + + struct CompilationGraph { + ToolChainMap ToolChains; + LanguageMap ExtsToLangs; + + int Build(llvm::sys::Path const& tempDir) const; + }; +} + +#endif // LLVM_TOOLS_LLVMC2_COMPILATION_GRAPH_H |