HomePhabricator

Move some functions from DWARFASTParserClang to ClangASTImporter.

Description

Move some functions from DWARFASTParserClang to ClangASTImporter.

This allows these functions to be re-used by a forthcoming
PDBASTParser. The functions in question are CanCompleteType,
CompleteType, and CanImport. Conceptually, these functions belong
on ClangASTImporter anyway, and previously they were just ping
ponging around through a few levels of indirection to end up there
as well, so this patch actually makes the code somewhat simpler.

A few methods were moved to a new file called ClangUtil, so that
they can be shared between ClangASTImporter and ClangASTContext
without creating a circular dependency between those two cpp
files.

Differential Revision: http://reviews.llvm.org/D18381

Details

Committed
zturnerMar 28 2016, 3:53 PM
Differential Revision
D18381: Decouple ClangASTContext from DWARF
Branches
Unknown
Tags
Unknown