diff options
author | Alexandre Ganea <alexandre.ganea@ubisoft.com> | 2020-02-12 17:01:55 -0500 |
---|---|---|
committer | Hans Wennborg <hans@chromium.org> | 2020-02-13 11:01:43 +0100 |
commit | 9c9e46d786d0581079e5018e550cbe187a1ec219 (patch) | |
tree | acdf55fda52462d87a19c7462ab474ed738f48c7 /clang/lib/Driver/ToolChains | |
parent | e1b73356879b1d9a8095de27e33943ae84d8f495 (diff) | |
download | bcm5719-llvm-9c9e46d786d0581079e5018e550cbe187a1ec219.tar.gz bcm5719-llvm-9c9e46d786d0581079e5018e550cbe187a1ec219.zip |
[Clang] Limit -fintegrated-cc1 to only one TU
As discussed in https://reviews.llvm.org/D74447, this patch disables integrated-cc1 behavior if there's more than one job to be executed. This is meant to limit memory bloating, given that currently jobs don't clean up after execution (-disable-free is always active in cc1 mode).
I see this behavior as temporary until release 10.0 ships (to ease merging of this patch), then we'll reevaluate the situation, see if D74447 makes more sense on the long term.
Differential Revision: https://reviews.llvm.org/D74490
(cherry picked from commit 20f1abe306d030e99f56185a3aa077ffadf59b8a)
Diffstat (limited to 'clang/lib/Driver/ToolChains')
-rw-r--r-- | clang/lib/Driver/ToolChains/Clang.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp index 7f13dca6459..aec1971214c 100644 --- a/clang/lib/Driver/ToolChains/Clang.cpp +++ b/clang/lib/Driver/ToolChains/Clang.cpp @@ -6053,7 +6053,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, if (Output.getType() == types::TY_Object && Args.hasFlag(options::OPT__SLASH_showFilenames, options::OPT__SLASH_showFilenames_, false)) { - C.getJobs().getJobs().back()->setPrintInputFilenames(true); + C.getJobs().getJobs().back()->PrintInputFilenames = true; } if (Arg *A = Args.getLastArg(options::OPT_pg)) |