summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Linker
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2010-12-18 04:13:36 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2010-12-18 04:13:36 +0000
commit4f63507d054afab14e759f046db5f42e3b96f6fb (patch)
treef4a91e95fd475621d848e05045d17e4afb2ff22f /llvm/lib/Linker
parente47230f9b5fc6a7cfbbd897778718ba4ea420624 (diff)
downloadbcm5719-llvm-4f63507d054afab14e759f046db5f42e3b96f6fb.tar.gz
bcm5719-llvm-4f63507d054afab14e759f046db5f42e3b96f6fb.zip
Support/PathV1: Deprecate get{Basename,Dirname,Suffix}.
llvm-svn: 122141
Diffstat (limited to 'llvm/lib/Linker')
-rw-r--r--llvm/lib/Linker/LinkModules.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp
index dd0b07e09bd..c710d7ee869 100644
--- a/llvm/lib/Linker/LinkModules.cpp
+++ b/llvm/lib/Linker/LinkModules.cpp
@@ -1301,10 +1301,9 @@ Linker::LinkModules(Module *Dest, Module *Src, std::string *ErrorMsg) {
// If the source library's module id is in the dependent library list of the
// destination library, remove it since that module is now linked in.
- sys::Path modId;
- modId.set(Src->getModuleIdentifier());
- if (!modId.isEmpty())
- Dest->removeLibrary(modId.getBasename());
+ const std::string &modId = Src->getModuleIdentifier();
+ if (!modId.empty())
+ Dest->removeLibrary(sys::path::stem(modId));
return false;
}
OpenPOWER on IntegriCloud