summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/CrashRecoveryContext.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-10-08 04:03:57 +0000
committerDouglas Gregor <dgregor@apple.com>2010-10-08 04:03:57 +0000
commitbb6a881862cd05e05bc5abaff9d321fa741de133 (patch)
tree90b3693b6eb354f558ae1db34d715e9f4bde9932 /llvm/lib/Support/CrashRecoveryContext.cpp
parentdd77477690ba27d97a3c35da63ad63716f977077 (diff)
downloadbcm5719-llvm-bb6a881862cd05e05bc5abaff9d321fa741de133.tar.gz
bcm5719-llvm-bb6a881862cd05e05bc5abaff9d321fa741de133.zip
Fix three related, wily issues with the recompilation of precompiled
preambles: - When we rebuild a precompiled preamble, make sure to disable skipping anything in the main file; we may have had leftover preamble-skipping values in the lexer, which leads to very empty preamble. This is a correctness issue. - When we rebuild a precompiled preamble, clear out any prior state in the Diagnostic object. Otherwise, we might think that there were errors when we were building the preamble itself, and therefore reject the resulting preamble. This is mainly a performance issue. - Don't remove old remappings when digging out the remapping for the main file. Having the old mappings around does not hurt in the common case (later remappings will just overwrite them), and is important when we fail to find a preamble: we don't want to have removed the remapping, because we'll need it later. llvm-svn: 116041
Diffstat (limited to 'llvm/lib/Support/CrashRecoveryContext.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud