[lld] Fix win7 failure on adding InputGraph functionality
llvm-svn: 188961
This commit is contained in:
parent
019c5905df
commit
c4dba32d19
|
@ -26,8 +26,8 @@ namespace lld {
|
||||||
class ELFFileNode : public FileNode {
|
class ELFFileNode : public FileNode {
|
||||||
public:
|
public:
|
||||||
ELFFileNode(ELFLinkingContext &ctx, StringRef path,
|
ELFFileNode(ELFLinkingContext &ctx, StringRef path,
|
||||||
bool isWholeArchive = false, bool asNeeded = false,
|
std::vector<StringRef> searchPath,
|
||||||
std::vector<StringRef> searchPath = { "" })
|
bool isWholeArchive = false, bool asNeeded = false)
|
||||||
: FileNode(path), _elfLinkingContext(ctx),
|
: FileNode(path), _elfLinkingContext(ctx),
|
||||||
_isWholeArchive(isWholeArchive), _asNeeded(asNeeded) {
|
_isWholeArchive(isWholeArchive), _asNeeded(asNeeded) {
|
||||||
std::copy(searchPath.begin(), searchPath.end(),
|
std::copy(searchPath.begin(), searchPath.end(),
|
||||||
|
|
|
@ -270,8 +270,8 @@ bool GnuLdDriver::parse(int argc, const char *argv[],
|
||||||
case OPT_l: {
|
case OPT_l: {
|
||||||
std::unique_ptr<InputElement> inputFile =
|
std::unique_ptr<InputElement> inputFile =
|
||||||
std::move(std::unique_ptr<InputElement>(
|
std::move(std::unique_ptr<InputElement>(
|
||||||
new ELFFileNode(*ctx, inputArg->getValue(), isWholeArchive,
|
new ELFFileNode(*ctx, inputArg->getValue(), searchPath,
|
||||||
asNeeded, searchPath)));
|
isWholeArchive, asNeeded)));
|
||||||
if (controlNodeStack.empty())
|
if (controlNodeStack.empty())
|
||||||
inputGraph->addInputElement(std::move(inputFile));
|
inputGraph->addInputElement(std::move(inputFile));
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue