diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2010-02-23 09:05:21 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2010-02-23 09:05:21 +0000 |
commit | 9660c5d3e0d303393e564a6af7504395e36f7b8c (patch) | |
tree | 4dd106425ca0b365f805d32de01ea1f22e8d2742 /lib/CompilerDriver/CompilationGraph.cpp | |
parent | 130bedecee17cb2003863684a6582d4bb613b24d (diff) | |
download | external_llvm-9660c5d3e0d303393e564a6af7504395e36f7b8c.zip external_llvm-9660c5d3e0d303393e564a6af7504395e36f7b8c.tar.gz external_llvm-9660c5d3e0d303393e564a6af7504395e36f7b8c.tar.bz2 |
Input files with empty suffixes must be passed to linker.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96927 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CompilerDriver/CompilationGraph.cpp')
-rw-r--r-- | lib/CompilerDriver/CompilationGraph.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CompilerDriver/CompilationGraph.cpp b/lib/CompilerDriver/CompilationGraph.cpp index a36d3fb..7d1c7fe 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() + '\''); |