Bruce Mitchener: Typo fixes.

llvm-svn: 175275
This commit is contained in:
Howard Hinnant 2013-02-15 15:48:49 +00:00
parent 65af0388b9
commit be2eced483
7 changed files with 16 additions and 12 deletions

View File

@ -32,3 +32,7 @@ D: Minor patches and fixes
N: Nowar Gu
E: wenhan.gu@gmail.com
D: Minor patches and fixes
N: Bruce Mitchener, Jr.
E: bruce.mitchener@gmail.com
D: Minor typo fixes

View File

@ -524,7 +524,7 @@ __cxa_decrement_exception_refcount(void* thrown_object) throw()
/*
Returns a pointer to the thrown object (if any) at the top of the
caughtExceptions stack. Atommically increment the exception's referenceCount.
caughtExceptions stack. Atomically increment the exception's referenceCount.
If there is no such thrown object or if the thrown object is foreign,
returns null.
@ -573,7 +573,7 @@ dependent_exception_cleanup(_Unwind_Reason_Code reason, _Unwind_Exception* unwin
}
/*
If thrown_object is not null, allocate, initialize and thow a dependent
If thrown_object is not null, allocate, initialize and throw a dependent
exception.
*/
void

View File

@ -75,7 +75,7 @@ extern "C" {
}
// Note that this implementation will reliably return NULL if not
// preceeded by a call to __cxa_get_globals(). This is an extension
// preceded by a call to __cxa_get_globals(). This is an extension
// to the Itanium ABI and is taken advantage of in several places in
// libc++abi.
__cxa_eh_globals * __cxa_get_globals_fast () {

View File

@ -45,7 +45,7 @@ extern void (*__cxa_new_handler)();
extern std::atomic<std::new_handler> __cxa_new_handler;
This change will not impact their ABI. But it will allow for a
portible performance optimization.
portable performance optimization.
*/

View File

@ -39,7 +39,7 @@
+-----------------+--------+
| lpStartEncoding | (char) |
+---------+-------+--------+---------------+-----------------------+
| lpStart | (encoded wtih lpStartEncoding) | defaults to funcStart |
| lpStart | (encoded with lpStartEncoding) | defaults to funcStart |
+---------+-----+--------+-----------------+---------------+-------+
| ttypeEncoding | (char) | Encoding of the type_info table |
+---------------+-+------+----+----------------------------+----------------+
@ -187,7 +187,7 @@ readULEB128(const uint8_t** data)
}
/// Read a sleb128 encoded value and advance pointer
/// See Variable Length Data Applendix C in:
/// See Variable Length Data Appendix C in:
/// @link http://dwarfstd.org/Dwarf4.pdf @unlink
/// @param data reference variable holding memory pointer to decode from
/// @returns decoded value
@ -344,7 +344,7 @@ get_shim_type_info(uint64_t ttypeIndex, const uint8_t* classInfo,
}
/*
This is checking a thrown exception type, excpType, against a posibly empty
This is checking a thrown exception type, excpType, against a possibly empty
list of catchType's which make up an exception spec.
An exception spec acts like a catch handler, but in reverse. This "catch
@ -489,7 +489,7 @@ scan_eh_tab(scan_results& results, _Unwind_Action actions, bool native_exception
return;
}
}
else // Niether _UA_SEARCH_PHASE nor _UA_CLEANUP_PHASE is set
else // Neither _UA_SEARCH_PHASE nor _UA_CLEANUP_PHASE is set
{
// One of these should be set.
// Client error
@ -1038,7 +1038,7 @@ __cxa_call_unexpected(void* arg)
{
// We need to __cxa_end_catch for both the old exception and the
// new exception. Technically we should do it in that order.
// But it is expedent to do it in the opposite order:
// But it is expedient to do it in the opposite order:
// Call __cxa_end_catch for new_exception_header
__cxa_end_catch();
// Throw std::bad_exception will __cxa_end_catch for

View File

@ -32,7 +32,7 @@ namespace {
// A pair of classes to simplify exception handling and control flow.
// They get passed a block of memory in the constructor, and unless the
// 'release' method is called, they deallocate the memory in the destructor.
// Prefered usage is to allocate some memory, attach it to one of these objects,
// Preferred usage is to allocate some memory, attach it to one of these objects,
// and then, when all the operations to set up the memory block have succeeded,
// call 'release'. If any of the setup operations fail, or an exception is
// thrown, then the block is automatically deallocated.

View File

@ -16,13 +16,13 @@
// When _LIBCXX_DYNAMIC_FALLBACK is defined, and only in the case where
// there is a detected inconsistency in the type_info hierarchy during a
// dynamic_cast, then the equality operation will fall back to using strcmp
// on type_info names to determin type_info equality.
// on type_info names to determine type_info equality.
//
// This change happens *only* under dynamic_cast, and only when
// dynamic_cast is faced with the choice: abort, or possibly give back the
// wrong answer. If when the dynamic_cast is done with this fallback
// algorithm and an inconsistency is still detected, dynamic_cast will call
// abort with an approriate message.
// abort with an appropriate message.
//
// The current implementation of _LIBCXX_DYNAMIC_FALLBACK requires a
// printf-like function called syslog: