diff options
author | Ed Maste <emaste@freebsd.org> | 2014-06-10 21:33:43 +0000 |
---|---|---|
committer | Ed Maste <emaste@freebsd.org> | 2014-06-10 21:33:43 +0000 |
commit | f57dcbb615b9e2ca2ac5b97c66321682b94761ca (patch) | |
tree | 6520da54d59de0619ce78ae59703cae7e8c476de /llvm/lib/Support/ErrorHandling.cpp | |
parent | f5d07fa586c3fbcb0deee6824a1cd8b7b812c0d4 (diff) | |
download | llvm-f57dcbb615b9e2ca2ac5b97c66321682b94761ca.zip llvm-f57dcbb615b9e2ca2ac5b97c66321682b94761ca.tar.gz llvm-f57dcbb615b9e2ca2ac5b97c66321682b94761ca.tar.bz2 |
Remove duplicated code
We preivously had two copies of ::BytesAvailable with only trivial
differences between them, and fixes have been applied to only one of
them.
Instead of duplicating the whole function, hide the FD_SET differences
behind a macro. This leaves only one small __APPLE__-specific #if
block, and fixes ^C on non-__APPLE__ platforms.
llvm-svn: 210592
Diffstat (limited to 'llvm/lib/Support/ErrorHandling.cpp')
0 files changed, 0 insertions, 0 deletions