MC/AsmParser: Avoid unnecessary use of SourceMgr::FindBufferForLoc()
authorDaniel Dunbar <daniel@zuster.org>
Sat, 1 Dec 2012 01:38:48 +0000 (01:38 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 1 Dec 2012 01:38:48 +0000 (01:38 +0000)
commit4259a1a7d8a0f6e8e53bccd516725f8480751a49
tree5532095b21caa477c282ab2dfa7734a8c904e5db
parent657b75b9946eae763725b413841dfd01ed12a051
MC/AsmParser: Avoid unnecessary use of SourceMgr::FindBufferForLoc()

 - Each macro instantiation introduces a new buffer, and FindBufferForLoc() is
   linear, so previously macro instantiation could be N^2 for some pathological
   inputs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169073 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCParser/AsmParser.cpp