[lld] Fix win7 failure on adding InputGraph functionality
authorShankar Easwaran <shankare@codeaurora.org>
Wed, 21 Aug 2013 23:13:22 +0000 (23:13 +0000)
committerShankar Easwaran <shankare@codeaurora.org>
Wed, 21 Aug 2013 23:13:22 +0000 (23:13 +0000)
llvm-svn: 188961

lld/include/lld/Driver/GnuLDInputGraph.h
lld/lib/Driver/GnuLdDriver.cpp

index ea69fd1..e70ac91 100644 (file)
@@ -26,8 +26,8 @@ namespace lld {
 class ELFFileNode : public FileNode {
 public:
   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),
         _isWholeArchive(isWholeArchive), _asNeeded(asNeeded) {
     std::copy(searchPath.begin(), searchPath.end(),
index 96fa319..4cd0d52 100644 (file)
@@ -270,8 +270,8 @@ bool GnuLdDriver::parse(int argc, const char *argv[],
     case OPT_l: {
       std::unique_ptr<InputElement> inputFile =
           std::move(std::unique_ptr<InputElement>(
-              new ELFFileNode(*ctx, inputArg->getValue(), isWholeArchive,
-                              asNeeded, searchPath)));
+              new ELFFileNode(*ctx, inputArg->getValue(), searchPath,
+                              isWholeArchive, asNeeded)));
       if (controlNodeStack.empty())
         inputGraph->addInputElement(std::move(inputFile));
       else