Skip to content
Commit b0ab5e9f authored by Daniel Dunbar's avatar Daniel Dunbar
Browse files

[AST] Reimplement Stmt::getLoc{Start,End} to dispatch to subclass overloads.

 - getSourceRange() can be very expensive, we should try to avoid it if at all possible.

In conjunction with the previous commit I measured a ~2% speedup on 403.gcc/combine.c and a 3% speedup on OmniGroupFrameworks/NSBezierPath-OAExtensions.m.

llvm-svn: 152411
parent b507f271
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment