llvm.org GIT mirror llvm / bbbc9d4
Remove unnecessary argument from PassThroughGraph git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50740 91177308-0d34-0410-b5e6-96231b3b80d8 Mikhail Glushenkov 12 years ago
2 changed file(s) with 9 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
111111 // Pass input file through the chain until we bump into a Join node or
112112 // a node that says that it is the last.
113113 const JoinTool*
114 CompilationGraph::PassThroughGraph (sys::Path& In, sys::Path Out,
114 CompilationGraph::PassThroughGraph (sys::Path& In,
115115 const sys::Path& TempDir) const {
116116 bool Last = false;
117117 JoinTool* ret = 0;
123123 const Node* N = &getNode(*TV.begin());
124124
125125 while(!Last) {
126 sys::Path Out;
126127 Tool* CurTool = N->ToolPtr.getPtr();
127128
128129 if (CurTool->IsJoin()) {
161162
162163 int CompilationGraph::Build (const sys::Path& TempDir) const {
163164 const JoinTool* JT = 0;
164 sys::Path In, Out;
165165
166166 // For each input file
167167 for (cl::list::const_iterator B = InputFilenames.begin(),
168168 E = InputFilenames.end(); B != E; ++B) {
169 In = sys::Path(*B);
170
171 const JoinTool* NewJoin = PassThroughGraph(In, Out, TempDir);
169 sys::Path In = sys::Path(*B);
170
171 const JoinTool* NewJoin = PassThroughGraph(In, TempDir);
172172 if (JT && NewJoin && JT != NewJoin)
173173 throw std::runtime_error("Graphs with multiple Join nodes"
174174 "are not yet supported!");
177177 }
178178
179179 if (JT) {
180 sys::Path Out;
180181 // If the final output name is empty, set it to "a.out"
181182 if (!OutputFilename.empty()) {
182183 Out = sys::Path(OutputFilename);
192193
193194 return 0;
194195 }
196
197 // Code related to graph visualization.
195198
196199 namespace llvm {
197200 template <>
152152 const tools_vector_type& getToolsVector(const std::string& LangName) const;
153153
154154 // Pass the input file through the toolchain.
155 const JoinTool* PassThroughGraph (llvm::sys::Path& In, llvm::sys::Path Out,
155 const JoinTool* PassThroughGraph (llvm::sys::Path& In,
156156 const llvm::sys::Path& TempDir) const;
157157
158158 };