HomePhabricator

Speed up deferred diagnostic emitter

Authored by yaxunl on Apr 1 2020, 8:26 PM.

Description

Speed up deferred diagnostic emitter

Move function emitDeferredDiags from Sema to DeferredDiagsEmitter since it
is only used by DeferredDiagsEmitter.

Also skip visited functions to avoid exponential compile time.

Differential Revision: https://reviews.llvm.org/D77028

Details