This is an archive of the discontinued LLVM Phabricator instance.

[NativePDB] Change GetOrCreateFunctionDecl to private and introduce CreateFunctionDecl
AbandonedPublic

Authored by lanza on Jul 12 2019, 8:26 PM.

Details

Reviewers
None
Summary

We're removing all clang specific details from PdbAstBuilder in order
to make it an abstract base class and then create subclasses specific
to the language.

GetOrCreateFunctionDecl returns a clang::FunctionDecl. But the only
class that uses the return is PdbAstBuilder itself. So we can simply
create a wrapper with no return that jumps to the actual creation
function in order to remove the clang specific behavior from
PdbAstBuilder.

Event Timeline

lanza created this revision.Jul 12 2019, 8:26 PM
lanza abandoned this revision.Dec 18 2019, 4:32 PM