summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2018-07-05 11:58:04 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2018-07-05 11:58:04 +0000
commit046fa610e0106212b87a9d53c48b696cb1767da6 (patch)
treebdb05f2f0f31544d690aca4996c031d48291497d
parentf26e7d1fe93ea31ac1ee7b8d5228eadc7df28be5 (diff)
downloadbcm5719-llvm-046fa610e0106212b87a9d53c48b696cb1767da6.tar.gz
bcm5719-llvm-046fa610e0106212b87a9d53c48b696cb1767da6.zip
[ELF] - Remove dead code. NFC.
I think code is dead, because the only way to see Path as empty seems would be if replaceThinLTOSuffix() replaced some prefix with empty prefix (making the result Path empty). But it is impossible to pass the empty prefix, we would file in driver: https://github.com/llvm-mirror/lld/blob/master/ELF/Driver.cpp#L669 llvm-svn: 336338
-rw-r--r--lld/ELF/LTO.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/lld/ELF/LTO.cpp b/lld/ELF/LTO.cpp
index 168bfc9c68b..b22f0717fb5 100644
--- a/lld/ELF/LTO.cpp
+++ b/lld/ELF/LTO.cpp
@@ -201,9 +201,6 @@ void BitcodeCompiler::add(BitcodeFile &F) {
static void createEmptyIndex(StringRef ModulePath) {
std::string Path = replaceThinLTOSuffix(getThinLTOOutputFile(ModulePath));
- if (Path.empty())
- return;
-
std::unique_ptr<raw_fd_ostream> OS = openFile(Path + ".thinlto.bc");
if (!OS)
return;
OpenPOWER on IntegriCloud