diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-08-08 21:35:52 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-08-08 21:35:52 +0000 |
commit | 7e774c249f3435d005f9d8e1405e088acc18b4bb (patch) | |
tree | 011caed978c5db15bb20a549a80dcbde7899de23 /llvm/lib | |
parent | f60022375490c11834e74670b966ff88f7af4582 (diff) | |
download | bcm5719-llvm-7e774c249f3435d005f9d8e1405e088acc18b4bb.tar.gz bcm5719-llvm-7e774c249f3435d005f9d8e1405e088acc18b4bb.zip |
Remove dead code. Fixes pr20544.
llvm-svn: 215243
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Support/Unix/Path.inc | 13 | ||||
-rw-r--r-- | llvm/lib/Support/Windows/Path.inc | 5 |
2 files changed, 0 insertions, 18 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc index 623547a95ed..64ea23c0689 100644 --- a/llvm/lib/Support/Unix/Path.inc +++ b/llvm/lib/Support/Unix/Path.inc @@ -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) { diff --git a/llvm/lib/Support/Windows/Path.inc b/llvm/lib/Support/Windows/Path.inc index 7a1bc0447fa..a57f252fbfc 100644 --- a/llvm/lib/Support/Windows/Path.inc +++ b/llvm/lib/Support/Windows/Path.inc @@ -163,11 +163,6 @@ std::error_code create_directory(const Twine &path, bool IgnoreExisting) { return std::error_code(); } -std::error_code normalize_separators(SmallVectorImpl<char> &Path) { - (void) Path; - return std::error_code(); -} - // We can't use symbolic links for windows. std::error_code create_link(const Twine &to, const Twine &from) { // Get arguments. |