summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorGabor Marton <gabor.marton@ericsson.com>2019-06-25 08:00:51 +0000
committerGabor Marton <gabor.marton@ericsson.com>2019-06-25 08:00:51 +0000
commit303c9861e90cb9a15b15d31fab06d0374d42c9af (patch)
tree4337137fabfb22424855eeaf15cba01f0295d811 /llvm/lib/Target
parent78edad1bf18e5f72dda26707c40e75cbb5db53da (diff)
downloadbcm5719-llvm-303c9861e90cb9a15b15d31fab06d0374d42c9af.tar.gz
bcm5719-llvm-303c9861e90cb9a15b15d31fab06d0374d42c9af.zip
[ASTImporter] Store import errors for Decls
Summary: We add a new member which is a mapping from the already-imported declarations in the "from" context to the error status of the import of that declaration. This map contains only the declarations that were not correctly imported. The same declaration may or may not be included in ImportedDecls. This map is updated continuously during imports and never cleared (like ImportedDecls). In Import(Decl*) we use this mapping, so if there was a previous failed import we return with the existing error. We add/remove from the Lookuptable in consistency with ImportedFromDecls. When we map a decl in the 'to' context to something in the 'from' context then and only then we add it to the lookup table. When we remove a mapping then and only then we remove it from the lookup table. This patch is the first in a series of patches whose aim is to further strengthen the error handling in ASTImporter. Reviewers: a_sidorin, a.sidorin, shafik Subscribers: rnkovacs, dkrupp, Szelethus, gamesh411, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D62373 llvm-svn: 364279
Diffstat (limited to 'llvm/lib/Target')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud