[llvm-commits] [llvm] r96927 - in /llvm/trunk: lib/CompilerDriver/CompilationGraph.cpp tools/llvmc/plugins/Base/Base.td.in
Mikhail Glushenkov
foldr at codedgers.com
Tue Feb 23 01:05:21 PST 2010
Author: foldr
Date: Tue Feb 23 03:05:21 2010
New Revision: 96927
URL: http://llvm.org/viewvc/llvm-project?rev=96927&view=rev
Log:
Input files with empty suffixes must be passed to linker.
Modified:
llvm/trunk/lib/CompilerDriver/CompilationGraph.cpp
llvm/trunk/tools/llvmc/plugins/Base/Base.td.in
Modified: llvm/trunk/lib/CompilerDriver/CompilationGraph.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CompilerDriver/CompilationGraph.cpp?rev=96927&r1=96926&r2=96927&view=diff
==============================================================================
--- llvm/trunk/lib/CompilerDriver/CompilationGraph.cpp (original)
+++ llvm/trunk/lib/CompilerDriver/CompilationGraph.cpp Tue Feb 23 03:05:21 2010
@@ -34,7 +34,8 @@
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() + '\'');
Modified: llvm/trunk/tools/llvmc/plugins/Base/Base.td.in
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc/plugins/Base/Base.td.in?rev=96927&r1=96926&r2=96927&view=diff
==============================================================================
--- llvm/trunk/tools/llvmc/plugins/Base/Base.td.in (original)
+++ llvm/trunk/tools/llvmc/plugins/Base/Base.td.in Tue Feb 23 03:05:21 2010
@@ -311,7 +311,7 @@
LangToSuffixes<"assembler-with-cpp", ["S"]>,
LangToSuffixes<"llvm-assembler", ["ll"]>,
LangToSuffixes<"llvm-bitcode", ["bc"]>,
- LangToSuffixes<"object-code", ["o"]>,
+ LangToSuffixes<"object-code", ["o", "*empty*"]>,
LangToSuffixes<"executable", ["out"]>
]>;
More information about the llvm-commits
mailing list