[PATCH] D46971: [DWARF] Get RA from RA register even if it appears unused
whitequark via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 16 12:22:56 PDT 2018
whitequark updated this revision to Diff 147153.
whitequark added a comment.
Reuploaded diff with context.
Repository:
rUNW libunwind
https://reviews.llvm.org/D46971
Files:
src/DwarfInstructions.hpp
Index: src/DwarfInstructions.hpp
===================================================================
--- src/DwarfInstructions.hpp
+++ src/DwarfInstructions.hpp
@@ -192,6 +192,8 @@
else
return UNW_EBADREG;
}
+ else if (i == (int)cieInfo.returnAddressRegister)
+ returnAddress = registers.getRegister(i);
}
// By definition, the CFA is the stack pointer at the call site, so
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46971.147153.patch
Type: text/x-patch
Size: 439 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180516/25b53226/attachment.bin>
More information about the llvm-commits
mailing list