mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
Remove dead code. Fixes pr20544.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215243 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -272,19 +272,6 @@ std::error_code create_directory(const Twine &path, bool IgnoreExisting) {
|
||||
return std::error_code();
|
||||
}
|
||||
|
||||
std::error_code normalize_separators(SmallVectorImpl<char> &Path) {
|
||||
for (auto PI = Path.begin(), PE = Path.end(); PI < PE; ++PI) {
|
||||
if (*PI == '\\') {
|
||||
auto PN = PI + 1;
|
||||
if (PN < PE && *PN == '\\')
|
||||
++PI; // increment once, the for loop will move over the escaped slash
|
||||
else
|
||||
*PI = '/';
|
||||
}
|
||||
}
|
||||
return std::error_code();
|
||||
}
|
||||
|
||||
// Note that we are using symbolic link because hard links are not supported by
|
||||
// all filesystems (SMB doesn't).
|
||||
std::error_code create_link(const Twine &to, const Twine &from) {
|
||||
|
||||
Reference in New Issue
Block a user