diff options
author | Greg Clayton <gclayton@apple.com> | 2015-07-29 18:37:25 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2015-07-29 18:37:25 +0000 |
commit | 0d5b0a8a786e3d656d76a679be5ec8ca31125155 (patch) | |
tree | 080d7ea75218ea4b666e331de3e442c4ac6af8d1 /llvm/lib/CodeGen/ErlangGC.cpp | |
parent | 1e33bbecb94854ea1d648ad54c9a31a9d353f266 (diff) | |
download | bcm5719-llvm-0d5b0a8a786e3d656d76a679be5ec8ca31125155.tar.gz bcm5719-llvm-0d5b0a8a786e3d656d76a679be5ec8ca31125155.zip |
Centralize where we update the source file contents in SourceManager::GetFile() in case APIs are called that don't update the source.
The following functions were the only functions that updates the source file:
SourceManager::File::DisplaySourceLines()
SourceManager::File::FindLinesMatchingRegex()
But there we API calls that were using the SourceManager::File and asking it questions, like "is line 12 valid" and that might respond incorrectly if the source file had been updated.
<rdar://problem/21269402>
llvm-svn: 243551
Diffstat (limited to 'llvm/lib/CodeGen/ErlangGC.cpp')
0 files changed, 0 insertions, 0 deletions