mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-08 18:30:04 +00:00
Simplify ".bc" detection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101365 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
165dac08d1
commit
3bb37e968b
@ -192,8 +192,7 @@ int main(int argc, char **argv, char * const *envp) {
|
||||
} else {
|
||||
// Otherwise, if there is a .bc suffix on the executable strip it off, it
|
||||
// might confuse the program.
|
||||
if (InputFile.size() > 3 &&
|
||||
InputFile.rfind(".bc") == InputFile.length() - 3)
|
||||
if (StringRef(InputFile).endswith(".bc"))
|
||||
InputFile.erase(InputFile.length() - 3);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user