summaryrefslogtreecommitdiff
path: root/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2019-02-28 18:39:08 +0000
committerThomas Lively <tlively@google.com>2019-02-28 18:39:08 +0000
commit87a9db53d1be4c83e3e6b669ed663fd776ad0ece (patch)
tree87c9aaa9452098ea8e374e99821f43fba5c4b85c /lib/Driver/Driver.cpp
parent943cfd81c5193f7eca99b3e65d1107658241a7a4 (diff)
downloadclang-87a9db53d1be4c83e3e6b669ed663fd776ad0ece.tar.gz
[WebAssembly] Remove uses of ThreadModel
Summary: In the clang UI, replaces -mthread-model posix with -matomics as the source of truth on threading. In the backend, replaces -thread-model=posix with the atomics target feature, which is now collected on the WebAssemblyTargetMachine along with all other used features. These collected features will also be used to emit the target features section in the future. The default configuration for the backend is thread-model=posix and no atomics, which was previously an invalid configuration. This change makes the default valid because the thread model is ignored. A side effect of this change is that objects are never emitted with passive segments. It will instead be up to the linker to decide whether sections should be active or passive based on whether atomics are used in the final link. Reviewers: aheejin, sbc100, dschuff Subscribers: mehdi_amini, jgravelle-google, hiraditya, sunfish, steven_wu, dexonsmith, rupprecht, jfb, jdoerfert, cfe-commits, llvm-commits Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D58742 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@355112 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r--lib/Driver/Driver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp
index b405390d44..eb03e6e87c 100644
--- a/lib/Driver/Driver.cpp
+++ b/lib/Driver/Driver.cpp
@@ -1528,7 +1528,7 @@ void Driver::PrintVersion(const Compilation &C, raw_ostream &OS) const {
if (TC.isThreadModelSupported(A->getValue()))
OS << "Thread model: " << A->getValue();
} else
- OS << "Thread model: " << TC.getThreadModel(C.getArgs());
+ OS << "Thread model: " << TC.getThreadModel();
OS << '\n';
// Print out the install directory.