This is an archive of the discontinued LLVM Phabricator instance.

Avoid including ScopeInfo.h from Sema.h
ClosedPublic

Authored by rnk on Mar 7 2018, 11:42 AM.

Details

Summary

This provides no measurable build speedup, but it reinstates an
optimization from r112038 that was lost in r179618. It requires moving
CapturedScopeInfo::Capture out to clang::sema, which might be too
general since we have plenty of other Capture records in BlockDecl and
other AST nodes.

Diff Detail

Repository
rL LLVM

Event Timeline

rnk created this revision.Mar 7 2018, 11:42 AM
rjmccall accepted this revision.Mar 7 2018, 11:58 AM

LGTM.

This revision is now accepted and ready to land.Mar 7 2018, 11:58 AM
rnk updated this revision to Diff 137487.Mar 7 2018, 2:43 PM
  • remove Sema::recordEvaluatedWeakUse to fix Linux build
This revision was automatically updated to reflect the committed changes.
This revision was automatically updated to reflect the committed changes.