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)
commit40f1d858071f3e21db97e357c0b5d4bdce109091
tree8e5921f07e875478b525ac02d77d3b5158170430
parentb767d1eba89be1a11bf11a13ede2a761fc186cfa
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.

llvm-svn: 169073
llvm/lib/MC/MCParser/AsmParser.cpp