diff options
author | Daniel Dunbar <daniel@zuster.org> | 2012-12-01 01:38:48 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2012-12-01 01:38:48 +0000 |
commit | 4259a1a7d8a0f6e8e53bccd516725f8480751a49 (patch) | |
tree | 5532095b21caa477c282ab2dfa7734a8c904e5db /lib/Support/FileOutputBuffer.cpp | |
parent | 657b75b9946eae763725b413841dfd01ed12a051 (diff) |
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
Diffstat (limited to 'lib/Support/FileOutputBuffer.cpp')
0 files changed, 0 insertions, 0 deletions