[PATCH] D18046: [X86] Providing correct unwind info in function epilogue
Kyle Butt via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 22 11:38:52 PDT 2017
iteratee added a comment.
This is looking really good. Thanks.
I still don't get the negation. I'm glad that you pinned it down to one location in the code, but I don't understand why it's there at all. Can you explain it to me?
================
Comment at: lib/CodeGen/CFIInstrInserter.cpp:43
+ // needed. The negated value is needed when creating CFI instructions that set
+ // absolute offset.
+ int getCorrectCFAOffset(MachineBasicBlock &MBB) {
----------------
I'm still not sure I get the negatives. Do the CFI instructions return the negative of what they're created with? That doesn't seem to make any sense.
Repository:
rL LLVM
https://reviews.llvm.org/D18046
More information about the llvm-commits
mailing list