diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-08-12 07:49:36 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-08-12 07:49:36 +0000 |
commit | 9e4fdd26566072ff99cbcb02934848406bdbeb58 (patch) | |
tree | 93405cbd260d8986508152610814e007da16b25c /llvm/lib/Support/Unix | |
parent | feb34713d531d1f48c37116e8cab84814202d057 (diff) | |
download | bcm5719-llvm-9e4fdd26566072ff99cbcb02934848406bdbeb58.tar.gz bcm5719-llvm-9e4fdd26566072ff99cbcb02934848406bdbeb58.zip |
Introduce factory methods for SpecialCaseList
Summary:
Doing work in constructors is bad: this change suggests to
call SpecialCaseList::create(Path, Error) instead of
"new SpecialCaseList(Path)". Currently the latter may crash with
report_fatal_error, which is undesirable - sometimes we want to report
the error to user gracefully - for example, if he provides an incorrect
file as an argument of Clang's -fsanitize-blacklist flag.
Reviewers: pcc
Reviewed By: pcc
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1327
llvm-svn: 188156
Diffstat (limited to 'llvm/lib/Support/Unix')
0 files changed, 0 insertions, 0 deletions