[lld] r261322 - Attemp to heal windows buildbot

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 19 03:56:49 PST 2016


Author: grimar
Date: Fri Feb 19 05:56:49 2016
New Revision: 261322

URL: http://llvm.org/viewvc/llvm-project?rev=261322&view=rev
Log:
Attemp to heal windows buildbot

http://lab.llvm.org:8011/builders/sanitizer-windows/builds/17414

Modified:
    lld/trunk/ELF/LinkerScript.cpp

Modified: lld/trunk/ELF/LinkerScript.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.cpp?rev=261322&r1=261321&r2=261322&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Fri Feb 19 05:56:49 2016
@@ -86,16 +86,16 @@ class elf2::ScriptParser {
 public:
   ScriptParser(BumpPtrAllocator *A, StringRef S, bool B)
       : Saver(*A), Tokens(tokenize(S)), IsUnderSysroot(B) {
-    Cmd["ENTRY"] = &ScriptParser::readEntry;
-    Cmd["EXTERN"] = &ScriptParser::readExtern;
-    Cmd["GROUP"] = &ScriptParser::readGroup;
-    Cmd["INCLUDE"] = &ScriptParser::readInclude;
-    Cmd["INPUT"] = &ScriptParser::readGroup;
-    Cmd["OUTPUT"] = &ScriptParser::readOutput;
-    Cmd["OUTPUT_ARCH"] = &ScriptParser::readOutputArch;
-    Cmd["OUTPUT_FORMAT"] = &ScriptParser::readOutputFormat;
-    Cmd["SEARCH_DIR"] = &ScriptParser::readSearchDir;
-    Cmd["SECTIONS"] = &ScriptParser::readSections;
+    Cmd["ENTRY"] = std::mem_fn(&ScriptParser::readEntry);
+    Cmd["EXTERN"] = std::mem_fn(&ScriptParser::readExtern);
+    Cmd["GROUP"] = std::mem_fn(&ScriptParser::readGroup);
+    Cmd["INCLUDE"] = std::mem_fn(&ScriptParser::readInclude);
+    Cmd["INPUT"] = std::mem_fn(&ScriptParser::readGroup);
+    Cmd["OUTPUT"] = std::mem_fn(&ScriptParser::readOutput);
+    Cmd["OUTPUT_ARCH"] = std::mem_fn(&ScriptParser::readOutputArch);
+    Cmd["OUTPUT_FORMAT"] = std::mem_fn(&ScriptParser::readOutputFormat);
+    Cmd["SEARCH_DIR"] = std::mem_fn(&ScriptParser::readSearchDir);
+    Cmd["SECTIONS"] = std::mem_fn(&ScriptParser::readSections);
     Cmd[";"] = [](ScriptParser &) {};
   }
 




More information about the llvm-commits mailing list