Fix PR20800: correctly calculate the offset of the subq instruction when generating...
authorAlexander Potapenko <glider@google.com>
Wed, 3 Sep 2014 07:11:34 +0000 (07:11 +0000)
committerAlexander Potapenko <glider@google.com>
Wed, 3 Sep 2014 07:11:34 +0000 (07:11 +0000)
commitfac68d2d7030568629ed7fc4c8fce0b63557c918
treedbf4fbc4c2a984ce04701528b2e55e794ee4dd8e
parent847547086d87bca88f9a0fb17723a4ae7e1ad772
Fix PR20800: correctly calculate the offset of the subq instruction when generating compact unwind info.

This CL replaces the constant DarwinX86AsmBackend.PushInstrSize with a method
that lets the backend account for different sizes of "push %reg" instruction
sizes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217020 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/X86/2014-08-29-CompactUnwind.ll [new file with mode: 0644]
tools/llvm-symbolizer/LLVMSymbolize.cpp