summaryrefslogtreecommitdiffstats
path: root/libcxxabi/src
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2014-03-20 01:28:28 +0000
committerJoerg Sonnenberger <joerg@bec.de>2014-03-20 01:28:28 +0000
commitdfd7c9f324254e56b1a5e720b847a8e8697314c3 (patch)
tree73a24501e42b1079daac17c3f77c13199eb22182 /libcxxabi/src
parentdeefb10fd68dcc232d42b1820a8dff9bdd0c5d95 (diff)
downloadbcm5719-llvm-dfd7c9f324254e56b1a5e720b847a8e8697314c3.tar.gz
bcm5719-llvm-dfd7c9f324254e56b1a5e720b847a8e8697314c3.zip
Simplify.
llvm-svn: 204292
Diffstat (limited to 'libcxxabi/src')
-rw-r--r--libcxxabi/src/Unwind/libunwind.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/libcxxabi/src/Unwind/libunwind.cpp b/libcxxabi/src/Unwind/libunwind.cpp
index 59ff4a70f17..3ce1b9ee85f 100644
--- a/libcxxabi/src/Unwind/libunwind.cpp
+++ b/libcxxabi/src/Unwind/libunwind.cpp
@@ -168,13 +168,8 @@ _LIBUNWIND_EXPORT int unw_set_reg(unw_cursor_t *cursor, unw_regnum_t regNum,
co->setReg(regNum, (pint_t)value);
// specical case altering IP to re-find info (being called by personality
// function)
- if (regNum == UNW_REG_IP) {
- unw_proc_info_t info;
- co->getInfo(&info);
- pint_t orgArgSize = (pint_t)info.gp;
- uint64_t orgFuncStart = info.start_ip;
+ if (regNum == UNW_REG_IP)
co->setInfoBasedOnIPRegister(false);
- }
return UNW_ESUCCESS;
}
return UNW_EBADREG;
OpenPOWER on IntegriCloud