diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2010-02-23 09:04:28 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2010-02-23 09:04:28 +0000 |
commit | ebf8fbbb8fdfa66198158fbcf62cee0c3012e8b7 (patch) | |
tree | 417815d39a9d3281bc30e9349727336ab71ca294 /llvm/lib | |
parent | 23cce8188bf4d14cd5b5ca37b5196f2cf7c620d7 (diff) | |
download | bcm5719-llvm-ebf8fbbb8fdfa66198158fbcf62cee0c3012e8b7.tar.gz bcm5719-llvm-ebf8fbbb8fdfa66198158fbcf62cee0c3012e8b7.zip |
New experimental/undocumented feature: 'works_on_empty'.
For now, just enough support to make -filelist work.
llvm-svn: 96918
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CompilerDriver/CompilationGraph.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/CompilerDriver/Main.cpp | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/CompilerDriver/CompilationGraph.cpp b/llvm/lib/CompilerDriver/CompilationGraph.cpp index 524607bee77..a36d3fb692a 100644 --- a/llvm/lib/CompilerDriver/CompilationGraph.cpp +++ b/llvm/lib/CompilerDriver/CompilationGraph.cpp @@ -313,7 +313,7 @@ int CompilationGraph::Build (const sys::Path& TempDir, JoinTool* JT = &dynamic_cast<JoinTool&>(*CurNode->ToolPtr.getPtr()); // Are there any files in the join list? - if (JT->JoinListEmpty()) + if (JT->JoinListEmpty() && !(JT->WorksOnEmpty() && InputFilenames.empty())) continue; Action CurAction = JT->GenerateAction(CurNode->HasChildren(), diff --git a/llvm/lib/CompilerDriver/Main.cpp b/llvm/lib/CompilerDriver/Main.cpp index 3a3487a0a9c..96877077cc8 100644 --- a/llvm/lib/CompilerDriver/Main.cpp +++ b/llvm/lib/CompilerDriver/Main.cpp @@ -126,10 +126,6 @@ int Main(int argc, char** argv) { return 0; } - if (InputFilenames.empty()) { - throw std::runtime_error("no input files"); - } - if (Time) { GlobalTimeLog = new std::stringstream; GlobalTimeLog->precision(2); |