aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/StackProtector.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-07-15 23:25:33 +0000
committerDan Gohman <gohman@apple.com>2009-07-15 23:25:33 +0000
commit58fcef917c8666801b6720cd6d65ccaf42ab8a61 (patch)
tree0b87250a4b2aad2f712c1ae7ae9b21ef388cc17e /llvm/lib/CodeGen/StackProtector.cpp
parentd4adebbbd6903e1b96d37fc772b0213f4fee78f5 (diff)
downloadllvm-58fcef917c8666801b6720cd6d65ccaf42ab8a61.zip
llvm-58fcef917c8666801b6720cd6d65ccaf42ab8a61.tar.gz
llvm-58fcef917c8666801b6720cd6d65ccaf42ab8a61.tar.bz2
Change raw_ostream so that it doesn't call llvm_report_error
immediately on every output error. Instead, add a flag to raw_ostream, and set the flag whenever an error is detected. The flag can be queried and cleared from the public API. This gives applications more flexibility to handling errors in application-specific ways. If the flag is not cleared when the raw_ostream is destructed, llvm_report_error is called from the destructor. This ensures that errors are not implicitly silenced, and provides convenient default behavior for tools like llc and opt. Clients wishing to avoid llvm_report_error calls from raw_ostream should check for errors and clear the error flag. llvm-svn: 75857
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions