<div dir="ltr">Thanks!<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 19 September 2016 at 20:02, Rui Ueyama via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: ruiu<br>
Date: Mon Sep 19 19:02:06 2016<br>
New Revision: 281951<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=281951&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project?rev=281951&view=rev</a><br>
Log:<br>
Remove a use of std::list.<br>
<br>
Modified:<br>
    lld/trunk/ELF/LinkerScript.h<br>
<br>
Modified: lld/trunk/ELF/LinkerScript.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.h?rev=281951&r1=281950&r2=281951&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project/lld/trunk/ELF/<wbr>LinkerScript.h?rev=281951&r1=<wbr>281950&r2=281951&view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- lld/trunk/ELF/LinkerScript.h (original)<br>
+++ lld/trunk/ELF/LinkerScript.h Mon Sep 19 19:02:06 2016<br>
@@ -21,7 +21,6 @@<br>
 #include "llvm/Support/MemoryBuffer.h"<br>
 #include "llvm/Support/Regex.h"<br>
 #include <functional><br>
-#include <list><br>
<br>
 namespace lld {<br>
 namespace elf {<br>
@@ -101,6 +100,15 @@ struct OutputSectionCommand : BaseComman<br>
 // This struct represents one section match pattern in SECTIONS() command.<br>
 // It can optionally have negative match pattern for EXCLUDED_FILE command.<br>
 struct SectionPattern {<br>
+  SectionPattern(llvm::Regex &&Re1, llvm::Regex &&Re2)<br>
+      : ExcludedFileRe(std::forward<<wbr>llvm::Regex>(Re1)),<br>
+        SectionRe(std::forward<llvm::<wbr>Regex>(Re2)) {}<br>
+<br>
+  SectionPattern(SectionPattern &&Other) {<br>
+    std::swap(ExcludedFileRe, Other.ExcludedFileRe);<br>
+    std::swap(SectionRe, Other.SectionRe);<br>
+  }<br>
+<br>
   llvm::Regex ExcludedFileRe;<br>
   llvm::Regex SectionRe;<br>
 };<br>
@@ -116,9 +124,7 @@ struct InputSectionDescription : BaseCom<br>
<br>
   // Input sections that matches at least one of SectionPatterns<br>
   // will be associated with this InputSectionDescription.<br>
-  // We use std::list instead of std::vector because SectionPattern<br>
-  // do not support move assignment.<br>
-  std::list<SectionPattern> SectionPatterns;<br>
+  std::vector<SectionPattern> SectionPatterns;<br>
<br>
   std::vector<InputSectionData *> Sections;<br>
 };<br>
<br>
<br>
______________________________<wbr>_________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div>