================
@@ -663,7 +664,7 @@ void DataCountSection::writeBody() {
 }
 
 bool DataCountSection::isNeeded() const {
-  return numSegments && ctx.arg.sharedMemory;
+  return numSegments && ctx.arg.isMultithreaded();
----------------
sbc100 wrote:

I think this should should stay as `sharedMemory`, no?    I think the reason is 
that with shared memory we use passive data segments.    When memory is not 
shared we don't do that so we don't need the data count section.

https://github.com/llvm/llvm-project/pull/175800
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to