[docs] Update documentation for the landingpad instruction
[oota-llvm.git] / docs / ExceptionHandling.rst
index 71efa4bbd531b5e8eb134edce462637f4638d5a8..9d8284598f56fc5c39a010758fba594ef642f364 100644 (file)
@@ -162,11 +162,11 @@ pad to the back end. For C++, the ``landingpad`` instruction returns a pointer
 and integer pair corresponding to the pointer to the *exception structure* and
 the *selector value* respectively.
 
-The ``landingpad`` instruction takes a reference to the personality function to
-be used for this ``try``/``catch`` sequence. The remainder of the instruction is
-a list of *cleanup*, *catch*, and *filter* clauses. The exception is tested
-against the clauses sequentially from first to last. The clauses have the
-following meanings:
+The ``landingpad`` instruction looks for a reference to the personality
+function to be used for this ``try``/``catch`` sequence in the parent
+function's attribute list. The instruction contains a list of *cleanup*,
+*catch*, and *filter* clauses. The exception is tested against the clauses
+sequentially from first to last. The clauses have the following meanings:
 
 -  ``catch <type> @ExcType``
 
@@ -404,7 +404,7 @@ outlined.  After the handler is outlined, this intrinsic is simply removed.
 .. _llvm.eh.exceptionpointer:
 
 ``llvm.eh.exceptionpointer``
-----------------------
+----------------------------
 
 .. code-block:: llvm