1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/include/llvm/Support
Pavel Labath ea9cf22c60 [Support] Add RetryAfterSignal helper function
Summary:
This function retries an operation if it was interrupted by a signal
(failed with EINTR). It's inspired by the TEMP_FAILURE_RETRY macro in
glibc, but I've turned that into a template function. I've also added a
fail-value argument, to enable the function to be used with e.g.
fopen(3), which is documented to fail for any reason that open(2) can
fail (which includes EINTR).

The main user of this function will be lldb, but there were also a
couple of uses within llvm that I could simplify using this function.

Reviewers: zturner, silvas, joerg

Subscribers: mgorny, llvm-commits

Differential Revision: https://reviews.llvm.org/D33895

llvm-svn: 305892
2017-06-21 10:55:34 +00:00
..
AArch64TargetParser.def
AlignOf.h
Allocator.h
AMDGPUCodeObjectMetadata.h
ARMAttributeParser.h
ARMBuildAttributes.h
ARMEHABI.h
ARMTargetParser.def
ARMWinEH.h
ArrayRecycler.h
Atomic.h
AtomicOrdering.h
BinaryByteStream.h
BinaryItemStream.h
BinaryStream.h
BinaryStreamArray.h Resubmit "[llvm-pdbutil] rewrite the "raw" output style." 2017-06-15 22:24:24 +00:00
BinaryStreamError.h
BinaryStreamReader.h
BinaryStreamRef.h
BinaryStreamWriter.h
BlockFrequency.h
BranchProbability.h
CachePruning.h
Capacity.h
Casting.h
CBindingWrapping.h
Chrono.h
circular_raw_ostream.h
CMakeLists.txt
CodeGen.h
CodeGenCWrappers.h
COM.h
CommandLine.h
Compiler.h
Compression.h
ConvertUTF.h
CrashRecoveryContext.h
DataExtractor.h
DataTypes.h.cmake
Debug.h
DebugCounter.h Hide dbgs() stream for when built with -fmodules. 2017-06-14 19:16:22 +00:00
DOTGraphTraits.h
DynamicLibrary.h
Endian.h
EndianStream.h
Errc.h
Errno.h [Support] Add RetryAfterSignal helper function 2017-06-21 10:55:34 +00:00
Error.h Add a cantFail overload for Expected-reference (Expected<T&>) types. 2017-06-20 22:18:02 +00:00
ErrorHandling.h
ErrorOr.h
FileOutputBuffer.h
FileSystem.h
FileUtilities.h
Format.h
FormatAdapters.h [formatv] Add the ability to specify a fill character when aligning. 2017-06-15 03:06:38 +00:00
FormatCommon.h [formatv] Add the ability to specify a fill character when aligning. 2017-06-15 03:06:38 +00:00
FormatProviders.h Revert "[llvm-pdbutil] rewrite the "raw" output style." 2017-06-15 20:55:51 +00:00
FormattedStream.h
FormatVariadic.h
FormatVariadicDetails.h
GCOV.h
GenericDomTree.h [Dominators] Clean up GenericDomTree.h. NFC. 2017-06-19 16:59:20 +00:00
GenericDomTreeConstruction.h [Dominators] Clean up typedefs in GenericDomTreeConstruction. NFC. 2017-06-19 17:24:56 +00:00
GlobPattern.h
GraphWriter.h
Host.h
JamCRC.h
KnownBits.h
LEB128.h
LICENSE.TXT
LineIterator.h
Locale.h
LockFileManager.h
LowLevelTypeImpl.h
ManagedStatic.h
MathExtras.h
MD5.h
Memory.h
MemoryBuffer.h
MipsABIFlags.h
Mutex.h
MutexGuard.h
NativeFormatting.h
OnDiskHashTable.h
Options.h
Parallel.h
Path.h
PluginLoader.h
PointerLikeTypeTraits.h
PrettyStackTrace.h
Printable.h
Process.h
Program.h
RandomNumberGenerator.h
raw_os_ostream.h
raw_ostream.h
raw_sha1_ostream.h
Recycler.h
RecyclingAllocator.h
Regex.h
Registry.h
RWMutex.h
SaveAndRestore.h
ScaledNumber.h
ScopedPrinter.h
SHA1.h
Signals.h
SMLoc.h
Solaris.h
SourceMgr.h
SpecialCaseList.h
StringPool.h
StringSaver.h
SwapByteOrder.h
SystemUtils.h
TargetParser.h
TargetRegistry.h
TargetSelect.h
TarWriter.h
thread.h
Threading.h
ThreadLocal.h
ThreadPool.h
Timer.h
ToolOutputFile.h
TrailingObjects.h
TrigramIndex.h
type_traits.h
TypeName.h
Unicode.h
UnicodeCharRanges.h
UniqueLock.h
Valgrind.h
Watchdog.h
Win64EH.h
WindowsError.h
xxhash.h
YAMLParser.h
YAMLTraits.h