[PowerPC] Fix missing GOT indirect variant kind
authorStefan Pintilie <stefanp@ca.ibm.com>
Wed, 6 May 2020 10:19:09 +0000 (05:19 -0500)
committerStefan Pintilie <stefanp@ca.ibm.com>
Wed, 6 May 2020 10:50:56 +0000 (05:50 -0500)
commit7d507ff55f6c7e44233be129072de1309b96d96d
tree77c7dcfba67b4a5ec11d6533f2fb10cbd9225852
parentaaf68cd9ce2fda224e02fd0f860e6372b4b00e47
[PowerPC] Fix missing GOT indirect variant kind

The function MCSymbolRefExpr::getVariantKindForName was missing the entry for
VK_PPC_GOT_PCREL. This patch adds the missing entry.

Differential Revision: https://reviews.llvm.org/D79015
llvm/lib/MC/MCExpr.cpp
llvm/test/MC/PowerPC/future-reloc.s [new file with mode: 0644]