diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-07-27 00:27:13 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-07-27 00:27:13 +0000 |
commit | fae3b2f4743dad616623c4df2fdb0f5128bd36d9 (patch) | |
tree | 9660c0f303a9e19e8d3eeb6e16ac3d5d9287e8a8 /include/clang/Frontend/PreprocessorOptions.h | |
parent | 681d7237e1014bf64dd5ead6bf74ae55cdd19e61 (diff) |
Implement -fno-validate-pch at the -cc1 level, which suppresses most
of the usual consistency checks used to determine when a precompiled
header is incompatible with the translation unit it's being loaded
into.
Enable this option when loading a precompiled preamble, because the
preamble loader will be performing all of this checking itself. Enable
the preamble-based test now that it's working.
This option is also useful for debugging Clang's PCH
(<rdar://problem/7532213>).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109475 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/PreprocessorOptions.h')
-rw-r--r-- | include/clang/Frontend/PreprocessorOptions.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang/Frontend/PreprocessorOptions.h b/include/clang/Frontend/PreprocessorOptions.h index f2154955c2..851c1f0108 100644 --- a/include/clang/Frontend/PreprocessorOptions.h +++ b/include/clang/Frontend/PreprocessorOptions.h @@ -43,6 +43,10 @@ public: /// The implicit PCH included at the start of the translation unit, or empty. std::string ImplicitPCHInclude; + /// \brief When true, disables most of the normal validation performed on + /// precompiled headers. + bool DisablePCHValidation; + /// \brief If non-zero, the implicit PCH include is actually a precompiled /// preamble that covers this number of bytes in the main source file. /// @@ -113,6 +117,7 @@ public: public: PreprocessorOptions() : UsePredefines(true), DetailedRecord(false), + DisablePCHValidation(false), PrecompiledPreambleBytes(0, true), RetainRemappedFileBuffers(false) { } |