llvm-6502/include/llvm/Support
Rafael Espindola c86cf04650 Remove another unused, and IMHO, not very desirable feature of ErrorOr.
One of the uses of the IsValid flag is to support default constructing
a ErrorOr that is not a Error or a Value. There is not much value in
doing that IMHO. If ErrorOr was to have a default constructor, it
should be implemented by default constructing the value, but even that
looks unnecessary.

The other use is to avoid calling destructors on moved objects. This
looks wrong. If the data being moved has non trivial treatment of
moves (an std::vector for example), it is its destructor that should
handle it, not ~ErrorOr.

With this change ErrorOr becomes a fairly simple wrapper and should
always be better than using an error_code + value in an API.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194109 91177308-0d34-0410-b5e6-96231b3b80d8
2013-11-05 23:41:57 +00:00
..
AIXDataTypesFix.h
AlignOf.h
Allocator.h [BumpPtrAllocator] Move DefaultSlabAllocator to a member of BumpPtrAllocator, instead of a static variable. 2013-08-28 01:02:21 +00:00
ArrayRecycler.h
Atomic.h
BlockFrequency.h Fix typo in comment 2013-07-02 04:15:28 +00:00
BranchProbability.h
CallSite.h Extend 'readonly' and 'readnone' to work on function arguments as well as 2013-07-06 00:29:58 +00:00
Capacity.h
Casting.h Fix a regression I introduced back in r178147. 2013-07-18 02:42:40 +00:00
CBindingWrapping.h Fix file header comment. 2013-05-01 21:01:06 +00:00
CFG.h Fix size_t -> uint warnings with MSVC 64-bit build 2013-07-20 00:20:10 +00:00
circular_raw_ostream.h
CodeGen.h This exposes more MCJIT options via the C API: 2013-05-01 22:58:00 +00:00
COFF.h Explicitly request unsigned enum types when desired 2013-09-23 23:26:57 +00:00
CommandLine.h Fix -Wdocumentation warning 2013-07-18 21:00:12 +00:00
Compiler.h Explicitly request unsigned enum types when desired 2013-09-23 23:26:57 +00:00
Compression.h Expose CRC-32 implementation from zlib 2013-08-14 16:03:29 +00:00
ConstantFolder.h
ConstantRange.h Use move semantics if possible to construct ConstantRanges. 2013-07-11 15:37:27 +00:00
ConvertUTF.h [Support] Add a Unicode conversion wrapper from UTF16 to UTF8 2013-07-16 17:14:33 +00:00
CrashRecoveryContext.h
DataExtractor.h
DataFlow.h
DataStream.h
DataTypes.h.cmake Remove dead or useless header checks from cmake and autoconf 2013-07-26 16:54:23 +00:00
DataTypes.h.in Remove dead or useless header checks from cmake and autoconf 2013-07-26 16:54:23 +00:00
Debug.h
DebugLoc.h
Disassembler.h
DOTGraphTraits.h
Dwarf.h DIEHash: Summary hashing of nested types 2013-10-25 18:38:43 +00:00
DynamicLibrary.h
ELF.h Support for microMIPS branch instructions. 2013-11-04 14:53:22 +00:00
Endian.h Make the host endianness check an integer constant expression. 2013-04-15 14:44:24 +00:00
Errno.h
ErrorHandling.h Add a boolean parameter to the llvm::report_fatal_error() function to indicated 2013-03-27 18:27:54 +00:00
ErrorOr.h Remove another unused, and IMHO, not very desirable feature of ErrorOr. 2013-11-05 23:41:57 +00:00
FEnv.h
FileOutputBuffer.h
FileSystem.h Remove declared but not implemented function. 2013-10-29 18:31:14 +00:00
FileUtilities.h Don't use PathV1.h in FileUtilities.h. 2013-06-13 20:41:00 +00:00
Format.h
FormattedStream.h Forward resetColor() et al to the underlying stream. 2013-08-08 00:43:30 +00:00
GCOV.h Support for reading run counts in llvm-cov. 2013-11-05 01:11:58 +00:00
GetElementPtrTypeIterator.h Avoid warnings about unused parameters that tend to come up a lot when 2013-06-10 12:09:30 +00:00
GraphWriter.h Convert a use of sys::Path::GetTemporaryDirectory. 2013-06-14 16:43:15 +00:00
Host.h The GNU/HURD is also using the libc. Therefor, endian.h should be included, not machine/endian.h. See full build log https://buildd.debian.org/status/fetch.php?pkg=llvm-toolchain-3.3&arch=hurd-i386&ver=1%3A3.3~%2Brc3-1~exp1&stamp=1370358869 2013-06-05 09:17:26 +00:00
IncludeFile.h
InstIterator.h
LeakDetector.h
LEB128.h Formatting. 2013-08-01 01:38:16 +00:00
LICENSE.TXT
Locale.h
LockFileManager.h
MachO.h update mach-o EXPORT_SYMBOL_* names 2013-10-08 00:59:13 +00:00
ManagedStatic.h Make PrettyStackTraceEntry use ManagedStatic for its ThreadLocal. 2013-09-13 22:59:47 +00:00
MathExtras.h Use gnu style builtins in MathExtras.h with clang on Windows 2013-08-06 19:45:27 +00:00
MD5.h Add support for adding the contents of a StringRef to the MD5 hash. 2013-05-31 22:34:56 +00:00
Memory.h
MemoryBuffer.h Change MemoryBuffer::getFile to take a Twine. 2013-10-25 19:06:52 +00:00
MemoryObject.h Remove the Copied parameter from MemoryObject::readBytes. 2013-05-24 10:54:58 +00:00
Mutex.h
MutexGuard.h
NoFolder.h
OutputBuffer.h
PassNameParser.h Provide basic type safety for array_pod_sort comparators. 2013-09-22 14:09:50 +00:00
Path.h Path: Add an in-place version of path::native. 2013-09-11 10:45:21 +00:00
PatternMatch.h Use Intrinsic::ID for the pattern match templates, fixing a signed/unsigned 2013-09-04 05:08:32 +00:00
PluginLoader.h
PointerLikeTypeTraits.h
PredIteratorCache.h
PrettyStackTrace.h Make the pretty stack trace be an opt-in, rather than opt-out, facility. Enable pretty 2013-11-04 02:22:25 +00:00
Process.h Revert "Revert "Windows: Add support for unicode command lines"" 2013-10-07 01:00:07 +00:00
Program.h Program.h: Fix \Note into \note. [-Wdocumentation] 2013-10-02 08:14:38 +00:00
raw_os_ostream.h
raw_ostream.h Add a wrapper for open. 2013-07-16 19:44:17 +00:00
Recycler.h
RecyclingAllocator.h Add an assertion to the fixed-size allocator to ensure that we don't request 2013-08-27 11:20:13 +00:00
Regex.h Introduce Regex::isLiteralERE function. 2013-08-05 17:47:59 +00:00
Registry.h [Support/Registry.h] Include llvm/Support/Compiler.h. 2013-06-27 17:57:40 +00:00
RegistryParser.h
RWMutex.h
SaveAndRestore.h
Signals.h Don't use PathV1.h in Signals.h. 2013-06-13 21:16:58 +00:00
SMLoc.h
Solaris.h Define BYTE_ORDER on Solaris. 2013-05-21 20:36:13 +00:00
SourceMgr.h Make SourceMgr::PrintMessage() testable and add unit tests 2013-09-27 21:09:25 +00:00
StreamableMemoryObject.h Remove the Copied parameter from MemoryObject::readBytes. 2013-05-24 10:54:58 +00:00
StringPool.h
StringRefMemoryObject.h Remove the Copied parameter from MemoryObject::readBytes. 2013-05-24 10:54:58 +00:00
SwapByteOrder.h
system_error.h
SystemUtils.h Move PrependMainExecutablePath next to its only user. 2013-06-14 15:12:13 +00:00
TargetFolder.h
TargetRegistry.h Allow repeated registration again. 2013-10-16 20:21:39 +00:00
TargetSelect.h
Threading.h
ThreadLocal.h
Timer.h
TimeValue.h Fix TimeValue::toWin32Time() to be symmetric to fromWin32Time() and compatible to Win32's FILETIME. 2013-07-16 02:43:51 +00:00
ToolOutputFile.h Add a wrapper for open. 2013-07-16 19:44:17 +00:00
type_traits.h
Unicode.h Move generic isPrint and columnWidth implementations to a separate header/source to allow using both generic and system-dependent versions on win32. 2013-09-04 16:00:12 +00:00
UnicodeCharRanges.h Fix the following error when NDEBUG is defined: 2013-08-29 18:49:35 +00:00
Valgrind.h Fix include guards. 2013-08-20 22:52:02 +00:00
ValueHandle.h
Watchdog.h
Win64EH.h Implements low-level object file format specific output for COFF and 2013-04-03 18:31:38 +00:00
YAMLParser.h [Support][YAML] Add support for accessing tags and tag handle substitution. 2013-10-18 22:38:04 +00:00
YAMLTraits.h Reverting my r193344 checkin due to build breakage. 2013-10-24 14:52:56 +00:00