Fix gnustl-shared-1 unit test failure.

gnustl-shared-1 failed because an exception table is
generated even though the function has no landingpads.
This commit is backported from upstream r167945.

------------------------------------------------------------
commit 062a6c8380efc74233d05ec895def51b01aa2f8f
Author: Anton Korobeynikov <asl@math.spbu.ru>
Date:   Wed Nov 14 19:13:30 2012 +0000

    Fix really stupid ARM EHABI info generation bug: we
    should not emit eh table and handler data if there are
    no landing pads in the function.  Patch by Logan Chien
    with some cleanups from me.

    git-svn-id:
    https://llvm.org/svn/llvm-project/llvm/trunk@167945
    91177308-0d3
------------------------------------------------------------

Change-Id: Ic32dc568c472da7ebd475c4a65ecae020bc15f89