This is an archive of the discontinued LLVM Phabricator instance.

[NativePDB] Change GetOrCreateBlockDecl to private and introduce CreateBlockDecl
AbandonedPublic

Authored by lanza on Jul 12 2019, 8:28 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.

GetOrCreateBlockDecl returns a clang::BlockDecl. 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 block in order
to remove the clang specific behavior from PdbAstBuilder.

Event Timeline

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