add a trivial line # cache to SourceMgr to make repeated queries to
authorChris Lattner <sabre@nondot.org>
Tue, 11 Aug 2009 17:49:14 +0000 (17:49 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 11 Aug 2009 17:49:14 +0000 (17:49 +0000)
commit1d96ccc69a265435cc1fb0eafe208857290e7dd2
tree1d45ab0258b12cf1fd64844f9041a1c9368f0e09
parentb27a41b44092c0a6e439203586cc944187de3388
add a trivial line # cache to SourceMgr to make repeated queries to
FindLineNumber much faster when in sequence.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78693 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/SourceMgr.h
lib/Support/SourceMgr.cpp