Input files with empty suffixes must be passed to linker.
llvm-svn: 96927
This commit is contained in:
parent
3f8f81e39a
commit
cf68f26beb
|
@ -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() + '\'');
|
||||
|
|
|
@ -311,7 +311,7 @@ def LanguageMap : LanguageMap<
|
|||
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"]>
|
||||
]>;
|
||||
|
||||
|
|
Loading…
Reference in New Issue