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)
commiteed959015b74763873f17ea82ba141f93952e007
treee8dbc2d4a8b9127968efb5e4287549c9b3792706
parentf0f66a254df42d76baef884a14862105e1fc4072
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221456 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
test/CodeGen/X86/win32-pic-jumptable.ll [new file with mode: 0644]