Frontend: Respect -fno-temp-file when creating a PCH
authorZachary Henkel <zahen@microsoft.com>
Fri, 18 Jun 2021 01:02:36 +0000 (18:02 -0700)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 18 Jun 2021 01:34:10 +0000 (18:34 -0700)
commit05d0f1a8ea012a6b7b8ea65893ec4121106444b5
tree4305d185d85881b0b64517ba96d4d68a8dfff532
parenta78671ef54e53196dc7b5ee9c91771c8e146d1d1
Frontend: Respect -fno-temp-file when creating a PCH

When creating a PCH file the use of a temp file will be dictated by the
presence or absence of the -fno-temp-file flag. Creating a module file
will always use a temp file via the new ForceUseTemporary flag.

This fixes bug 50033.
clang/include/clang/Frontend/CompilerInstance.h
clang/lib/Frontend/CompilerInstance.cpp
clang/lib/Frontend/FrontendActions.cpp