This is an archive of the discontinued LLVM Phabricator instance.

Frontend: Add CompilerInvocation and DiagnosticsEngine to the builder
Needs ReviewPublic

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

Details

Reviewers
rsmith
Summary

Add CompilerInvocation and DiagnosticsEngine to the new builder,
replacing a number of no-longer-needed CompilerInstance mutators.
These are in the same commit because the construction of a
CompilerInvocation and a DiagnosticsEngine is interestingly
entangled, since they each can depend on the other. When the dependency
is truly cyclic, a temporary DiagnosticsEngine is used to construct
the CompilerInvocation, then the latter to construct the "real"
DiagnosticsEngine and the former's diagnostics are replayed.

Diff Detail