mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-18 11:24:01 +00:00
Support/PathV1: Deprecate get{Basename,Dirname,Suffix}.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122141 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user