mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +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:
parent
130bedecee
commit
9660c5d3e0
@ -34,7 +34,8 @@ namespace llvmc {
|
|||||||
|
|
||||||
const std::string& LanguageMap::GetLanguage(const sys::Path& File) const {
|
const std::string& LanguageMap::GetLanguage(const sys::Path& File) const {
|
||||||
StringRef suf = File.getSuffix();
|
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())
|
if (Lang == this->end())
|
||||||
throw std::runtime_error("File '" + File.str() +
|
throw std::runtime_error("File '" + File.str() +
|
||||||
"' has unknown suffix '" + suf.str() + '\'');
|
"' has unknown suffix '" + suf.str() + '\'');
|
||||||
|
@ -311,7 +311,7 @@ def LanguageMap : LanguageMap<
|
|||||||
LangToSuffixes<"assembler-with-cpp", ["S"]>,
|
LangToSuffixes<"assembler-with-cpp", ["S"]>,
|
||||||
LangToSuffixes<"llvm-assembler", ["ll"]>,
|
LangToSuffixes<"llvm-assembler", ["ll"]>,
|
||||||
LangToSuffixes<"llvm-bitcode", ["bc"]>,
|
LangToSuffixes<"llvm-bitcode", ["bc"]>,
|
||||||
LangToSuffixes<"object-code", ["o"]>,
|
LangToSuffixes<"object-code", ["o", "*empty*"]>,
|
||||||
LangToSuffixes<"executable", ["out"]>
|
LangToSuffixes<"executable", ["out"]>
|
||||||
]>;
|
]>;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user