diff options
Diffstat (limited to 'llvm/tools/llvm-ar/Archive.cpp')
| -rw-r--r-- | llvm/tools/llvm-ar/Archive.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/llvm/tools/llvm-ar/Archive.cpp b/llvm/tools/llvm-ar/Archive.cpp index cac65cf7706..520e410e1ac 100644 --- a/llvm/tools/llvm-ar/Archive.cpp +++ b/llvm/tools/llvm-ar/Archive.cpp @@ -97,15 +97,8 @@ bool ArchiveMember::replaceWith(StringRef newFile, std::string* ErrMsg) { else flags &= ~StringTableFlag; - // If it has a slash then it has a path - bool hasSlash = path.find('/') != std::string::npos; - if (hasSlash) - flags |= HasPathFlag; - else - flags &= ~HasPathFlag; - // If it has a slash or its over 15 chars then its a long filename format - if (hasSlash || path.length() > 15) + if (path.length() > 15) flags |= HasLongFilenameFlag; else flags &= ~HasLongFilenameFlag; |

