Compute the correct jump table entries on 32 bit windows.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 6 Nov 2014 14:39:49 +0000 (14:39 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 6 Nov 2014 14:39:49 +0000 (14:39 +0000)
commit26cfbea73872e0553a8449bfb14e12102414185e
tree4ed9a07fd69c448a3960085abace4d417e508353
parent7ecd22ca4a205788ce8228d60bf5e67bb06fdfb6
Compute the correct jump table entries on 32 bit windows.

On 32 bit windows we use label differences and .set does not suppress
rolocations, a combination that was not used before r220256.

This fixes PR21497.

llvm-svn: 221456
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/test/CodeGen/X86/win32-pic-jumptable.ll [new file with mode: 0644]