mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-30 05:24:22 +00:00
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
This commit is contained in:
@ -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() + '\'');
|
||||
|
Reference in New Issue
Block a user