summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.h
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2012-08-18 16:58:52 +0000
committerJordan Rose <jordan_rose@apple.com>2012-08-18 16:58:52 +0000
commit8c1ac0c37662e6439a77a88aac1b01bda1a4bfcb (patch)
treed47774eae3cdb493196f5f810b8667e03ac595d2 /llvm/lib/Bitcode/Reader/BitcodeReader.h
parent1e28826abe06f32de53298de2a48cb29bef35d3c (diff)
downloadbcm5719-llvm-8c1ac0c37662e6439a77a88aac1b01bda1a4bfcb.tar.gz
bcm5719-llvm-8c1ac0c37662e6439a77a88aac1b01bda1a4bfcb.zip
Allow -verify to be used with files that don't have an associated FileEntry.
In Debug builds, VerifyDiagnosticConsumer checks any files with diagnostics to make sure we got the chance to parse them for directives (expected-warning and friends). This check previously relied on every parsed file having a FileEntry, which broke the cling interpreter's test suite. This commit changes the extra debug checking to mark a file as unparsed as soon as we see a diagnostic from that file. At the very end, any files that are still marked as unparsed are checked for directives, and a fatal error is emitted (as before) if we find out that there were directives we missed. -verify directives should always live in actual parsed files, not in PCH or AST files. Patch by Andy Gibbs, with slight modifications by me. llvm-svn: 162171
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud