[PATCH] D48689: [WebAssembly] Set threadmodel during LTO

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 27 17:20:23 PDT 2018


sbc100 created this revision.
Herald added subscribers: llvm-commits, steven_wu, sunfish, aheejin, jgravelle-google, inglorion, mehdi_amini, dschuff.

Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D48689

Files:
  wasm/LTO.cpp


Index: wasm/LTO.cpp
===================================================================
--- wasm/LTO.cpp
+++ wasm/LTO.cpp
@@ -45,10 +45,13 @@
   lto::Config C;
   C.Options = InitTargetOptionsFromCodeGenFlags();
 
-  // Always emit a section per function/datum with LTO.
+  // Always emit a section per function/data with LTO.
   C.Options.FunctionSections = true;
   C.Options.DataSections = true;
 
+  // Wasm currently only supports ThreadModel::Single
+  C.Options.ThreadModel = ThreadModel::Single;
+
   C.DisableVerify = Config->DisableVerify;
   C.DiagHandler = diagnosticHandler;
   C.OptLevel = Config->LTOO;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48689.153217.patch
Type: text/x-patch
Size: 618 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180628/516c748a/attachment.bin>


More information about the llvm-commits mailing list