diff options
author | Dan Gohman <gohman@apple.com> | 2009-07-15 23:25:33 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-07-15 23:25:33 +0000 |
commit | fea4260990ebf14b6bd1ff44e4dc96bdf275d1ca (patch) | |
tree | 1b99511fbb47295ae25647143b4a4e5d0e514a36 /include/llvm/Target/TargetMachine.h | |
parent | 946686a5ae960c98ec8622fe9c97bcbb9f2ac49f (diff) | |
download | external_llvm-fea4260990ebf14b6bd1ff44e4dc96bdf275d1ca.zip external_llvm-fea4260990ebf14b6bd1ff44e4dc96bdf275d1ca.tar.gz external_llvm-fea4260990ebf14b6bd1ff44e4dc96bdf275d1ca.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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75857 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetMachine.h')
0 files changed, 0 insertions, 0 deletions