OSDN Git Service

Rollback "[Support] Add RetryAfterSignal helper function" nougat-x86 android-x86-7.1-r4 android-x86-7.1-r5
authorMauro Rossi <issor.oruam@gmail.com>
Sat, 9 Jun 2018 23:49:36 +0000 (01:49 +0200)
committerMauro Rossi <issor.oruam@gmail.com>
Sun, 10 Jun 2018 20:53:30 +0000 (22:53 +0200)
commit69078b594c8586d40dc367b3e20237a9f3f7a1a4
treeb3c49f07fb3b82f45b8ae4a9d15604ad4876deb0
parent16f5045794901e308431b81f8ab36e322dfc5913
Rollback "[Support] Add RetryAfterSignal helper function"

This rollback is necessary to avoid the following building error:

In file included from external/llvm70/lib/Support/Path.cpp:1082:
external/llvm70/lib/Support/Unix/Path.inc:770:19: error: no matching function for call to 'RetryAfterSignal'
  if ((ResultFD = sys::RetryAfterSignal(-1, open, P.begin(), OpenFlags, Mode)) <
                  ^~~~~~~~~~~~~~~~~~~~~
external/llvm/lib/Support/../../include/llvm/Support/Errno.h:34:13:
note: candidate template ignored: couldn't infer template argument 'Fun'
inline auto RetryAfterSignal(const FailT &Fail, const Fun &F,
            ^
1 error generated.

Fixes: d04333d38b (Recommit "[Support] Add RetryAfterSignal helper function")
include/llvm/Support/Errno.h
lib/Support/MemoryBuffer.cpp
lib/Support/Unix/Path.inc
lib/Support/Unix/Process.inc
unittests/Support/CMakeLists.txt
unittests/Support/ErrnoTest.cpp [deleted file]