diff options
| author | Roman Divacky <rdivacky@FreeBSD.org> | 2010-03-03 17:27:15 +0000 | 
|---|---|---|
| committer | Roman Divacky <rdivacky@FreeBSD.org> | 2010-03-03 17:27:15 +0000 | 
| commit | 67a71b3184ce20a901e874d0ee25e01397dd87ef (patch) | |
| tree | 836a05cff50ca46176117b86029f061fa4db54f0 /lib/CompilerDriver/CompilationGraph.cpp | |
| parent | 6fe5c7aa327e188b7176daa5595bbf075a6b94df (diff) | |
Notes
Diffstat (limited to 'lib/CompilerDriver/CompilationGraph.cpp')
| -rw-r--r-- | lib/CompilerDriver/CompilationGraph.cpp | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CompilerDriver/CompilationGraph.cpp b/lib/CompilerDriver/CompilationGraph.cpp index 524607bee779..7d1c7fe4a62b 100644 --- a/lib/CompilerDriver/CompilationGraph.cpp +++ b/lib/CompilerDriver/CompilationGraph.cpp @@ -34,7 +34,8 @@ namespace llvmc {    const std::string& LanguageMap::GetLanguage(const sys::Path& File) const {      StringRef suf = File.getSuffix(); -    LanguageMap::const_iterator Lang = this->find(suf); +    LanguageMap::const_iterator Lang = +      this->find(suf.empty() ? "*empty*" : suf);      if (Lang == this->end())        throw std::runtime_error("File '" + File.str() +                                  "' has unknown suffix '" + suf.str() + '\''); @@ -313,7 +314,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(),  | 
