This is an archive of the discontinued LLVM Phabricator instance.

Frontend: Create basic CompilerInstanceBuilder
Needs ReviewPublic

Authored by dexonsmith on May 25 2019, 3:45 PM.

Details

Reviewers
rsmith
Summary

This sketches out the beginning of a CompilerInstanceBuilder. For now
it just handles PCHContainerOps and InMemoryModuleCache, which are
already handled by the CompilerInstance constructor.

Subsequent commits will incrementally replace CompilerInstance::set*
and CompilerInstance::create* mutators with builder methods,
simplifying construction and possibly clarifying some lifetimes.

Diff Detail

Event Timeline

@rsmith ping -- Besides rebasing, any concerns about this? Alternatively, any more follow-ups on this thread from last year?