1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00
llvm-mirror/include/llvm
Lang Hames c4fb566fb8 [Object] Change Archive::child_iterator for better interop with Error/Expected.
See http://reviews.llvm.org/D22079

Changes the Archive::child_begin and Archive::children to require a reference
to an Error. If iterator increment fails (because the archive header is
damaged) the iterator will be set to 'end()', and the error stored in the
given Error&. The Error value should be checked by the user immediately after
the loop. E.g.:

Error Err;
for (auto &C : A->children(Err)) {
  // Do something with archive child C.
}
// Check the error immediately after the loop.
if (Err)
  return Err;

Failure to check the Error will result in an abort() when the Error goes out of
scope (as guaranteed by the Error class).

llvm-svn: 275316
2016-07-13 21:13:05 +00:00
..
ADT [ADT] Add LLVM_MARK_AS_BITMASK_ENUM, used to enable bitwise operations on enums without static_cast. 2016-07-13 18:23:16 +00:00
Analysis Reverting r275284 due to platform-specific test failures 2016-07-13 19:09:16 +00:00
AsmParser [AsmParser] Expose an API to parse a string starting with a type. 2016-03-08 00:37:07 +00:00
Bitcode Add a libLTO API to query a memory buffer and check if it contains ObjC categories 2016-07-11 23:10:18 +00:00
CodeGen Add print/dump routines to LiveInterval::SubRange 2016-07-12 17:37:44 +00:00
Config Add the printing the Mach-O (__LLVM,__bundle) xar archive file section "verbosely" 2016-05-23 21:34:12 +00:00
DebugInfo Re-enable TPI hash verification for enum records. 2016-07-12 03:25:03 +00:00
ExecutionEngine Delete MCCodeGenInfo. 2016-06-30 18:25:11 +00:00
IR [IR] Make getIndexedOffsetInType return a signed result 2016-07-13 03:42:38 +00:00
IRReader [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
LibDriver [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
LineEditor Apply clang-tidy's misc-move-constructor-init throughout LLVM. 2016-05-27 14:27:24 +00:00
Linker Linker: teach the IR mover to return llvm::Error. 2016-05-27 05:21:35 +00:00
LTO ThinLTO: Do not take into account whether a definition has multiple copies when promoting. 2016-07-07 18:31:51 +00:00
MC Fix branch relaxation in 16-bit mode. 2016-07-11 14:23:53 +00:00
Object [Object] Change Archive::child_iterator for better interop with Error/Expected. 2016-07-13 21:13:05 +00:00
ObjectYAML [yaml2obj] Remove --format option in favor of YAML tags 2016-06-27 19:53:53 +00:00
Option Option parser: class for consuming a joined arg in addition to all remaining args 2016-04-15 00:23:30 +00:00
Passes [PM] Refactor cross-registration of AM into an helper. 2016-05-14 23:21:50 +00:00
ProfileData [modules] Add missing includes. 2016-07-08 12:00:08 +00:00
Support [Object] Change Archive::child_iterator for better interop with Error/Expected. 2016-07-13 21:13:05 +00:00
TableGen AArch64: TableGenerate system instruction operands. 2016-07-05 21:23:04 +00:00
Target fix documentation comments; NFC 2016-07-09 18:52:07 +00:00
Transforms New pass manager for LICM. 2016-07-12 22:37:48 +00:00
CMakeLists.txt
InitializePasses.h [BFI] Add new LazyBFI analysis pass 2016-07-13 05:01:48 +00:00
LinkAllIR.h Remove every uses of getGlobalContext() in LLVM (but the C API) 2016-04-14 21:59:01 +00:00
LinkAllPasses.h [CFLAA] Split into Anders+Steens analysis. 2016-07-06 00:26:41 +00:00
module.modulemap Define a module map entry for ProfileData. 2016-07-13 20:19:09 +00:00
module.modulemap.build
Pass.h Remove unused header. 2016-05-25 22:56:58 +00:00
PassAnalysisSupport.h Apply clang-tidy's modernize-loop-convert to most of lib/Transforms. 2016-06-26 12:28:59 +00:00
PassInfo.h
PassRegistry.h [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
PassSupport.h [LPM] Reinstate r271781 which reinstated r271652 to replace the 2016-06-04 19:57:55 +00:00