summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/section/TestSectionAPI.py
diff options
context:
space:
mode:
authorYaxun Liu <Yaxun.Liu@amd.com>2016-09-07 18:40:20 +0000
committerYaxun Liu <Yaxun.Liu@amd.com>2016-09-07 18:40:20 +0000
commit43712e05eafef51596be8d7415874514d68571c6 (patch)
tree8c0a1da002f6263411210b010f33b5d4c9a31397 /lldb/packages/Python/lldbsuite/test/python_api/section/TestSectionAPI.py
parent90658fff1bd90c229136c869f69c5cc96c8f0a31 (diff)
downloadbcm5719-llvm-43712e05eafef51596be8d7415874514d68571c6.tar.gz
bcm5719-llvm-43712e05eafef51596be8d7415874514d68571c6.zip
Do not validate pch when -fno-validate-pch is set
There is a bug causing pch to be validated even though -fno-validate-pch is set. This patch fixes it. ASTReader relies on ASTReaderListener to initialize SuggestedPredefines, which is required for compilations using PCH. Before this change, PCHValidator is the default ASTReaderListener. After this change, when -fno-validate-pch is set, PCHValidator is disabled, but we need a replacement ASTReaderListener to initialize SuggestedPredefines. Class SimpleASTReaderListener is implemented for this purpose. This change only affects -fno-validate-pch. There is no functional change if -fno-validate-pch is not set. If -fno-validate-pch is not set, conflicts in predefined macros between pch and current compiler instance causes error. If -fno-validate-pch is set, predefine macros in current compiler override those in pch so that compilation can continue. Differential Revision: https://reviews.llvm.org/D24054 llvm-svn: 280842
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/section/TestSectionAPI.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud