diff options
author | Jan Svoboda <jan_svoboda@apple.com> | 2021-08-04 13:27:25 +0200 |
---|---|---|
committer | Jan Svoboda <jan_svoboda@apple.com> | 2021-08-04 13:46:40 +0200 |
commit | 0556138624edf48621dd49a463dbe12e7101f17d (patch) | |
tree | 01f08a498b4aacbcec8ac1c9671ec29f789af1d6 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 9102a16bef1aa8c780f440f8ac7d71090d1a96c1 (diff) | |
download | llvm-0556138624edf48621dd49a463dbe12e7101f17d.zip llvm-0556138624edf48621dd49a463dbe12e7101f17d.tar.gz llvm-0556138624edf48621dd49a463dbe12e7101f17d.tar.bz2 |
[clang][cli] Expose -fno-cxx-modules in cc1
For some use-cases, it might be useful to be able to turn off modules for C++ in `-cc1`. (The feature is implied by `-std=C++20`.)
This patch exposes the `-fno-cxx-modules` option in `-cc1`.
Reviewed By: arphaman
Differential Revision: https://reviews.llvm.org/D106864
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 39335c4..2c6ba15 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -3150,8 +3150,6 @@ void CompilerInvocation::setLangDefaults(LangOptions &Opts, InputKind IK, Opts.HexFloats = Std.hasHexFloats(); Opts.ImplicitInt = Std.hasImplicitInt(); - Opts.CPlusPlusModules = Opts.CPlusPlus20; - // Set OpenCL Version. Opts.OpenCL = Std.isOpenCL(); if (LangStd == LangStandard::lang_opencl10) |