diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2008-05-06 18:08:59 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2008-05-06 18:08:59 +0000 |
commit | d4918dd32c5af6480534905dd31793f66e47cae6 (patch) | |
tree | 53739bf3cc20a0989fdcb421c4798de6cdbe9e87 /llvm/tools/llvmc2/CompilationGraph.cpp | |
parent | 2eb0268fab961a1592549ef20d89dfce7142f3b2 (diff) | |
download | bcm5719-llvm-d4918dd32c5af6480534905dd31793f66e47cae6.tar.gz bcm5719-llvm-d4918dd32c5af6480534905dd31793f66e47cae6.zip |
Add output redirection, rename namespace llvmcc to namespace llvmc.
llvm-svn: 50746
Diffstat (limited to 'llvm/tools/llvmc2/CompilationGraph.cpp')
-rw-r--r-- | llvm/tools/llvmc2/CompilationGraph.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/llvm/tools/llvmc2/CompilationGraph.cpp b/llvm/tools/llvmc2/CompilationGraph.cpp index a130ee54574..817e0fb4c6b 100644 --- a/llvm/tools/llvmc2/CompilationGraph.cpp +++ b/llvm/tools/llvmc2/CompilationGraph.cpp @@ -24,7 +24,7 @@ #include <stdexcept> using namespace llvm; -using namespace llvmcc; +using namespace llvmc; extern cl::list<std::string> InputFilenames; extern cl::opt<std::string> OutputFilename; @@ -215,6 +215,9 @@ const Node* CompilationGraph::FindToolChain(const sys::Path& In) const { return &getNode(ChooseEdge(TV)->ToolName()); } +// TOFIX: merge some parts with PassThroughGraph. +// Build the targets. Command-line options are passed through +// temporary variables. int CompilationGraph::Build (const sys::Path& TempDir) { // For each input file: @@ -234,12 +237,13 @@ int CompilationGraph::Build (const sys::Path& TempDir) { // For all join nodes in topological order: for (std::vector<const Node*>::iterator B = JTV.begin(), E = JTV.end(); B != E; ++B) { - // TOFIX: more testing, merge some parts with PassThroughGraph. + sys::Path Out; const Node* CurNode = *B; JoinTool* JT = &dynamic_cast<JoinTool&>(*CurNode->ToolPtr.getPtr()); bool IsLast = false; + // Has files pending? if (JT->JoinListEmpty()) continue; @@ -277,7 +281,7 @@ int CompilationGraph::Build (const sys::Path& TempDir) { namespace llvm { template <> - struct DOTGraphTraits<llvmcc::CompilationGraph*> + struct DOTGraphTraits<llvmc::CompilationGraph*> : public DefaultDOTGraphTraits { |