Load from the GOT for external symbols in the large, PIC code model
authorReid Kleckner <rnk@google.com>
Wed, 1 Aug 2018 22:56:05 +0000 (22:56 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 1 Aug 2018 22:56:05 +0000 (22:56 +0000)
commita30a6d2c29f59ffdf75a9e2c3dc53b2c93406f76
treef2d94e17f9d333b72e29f8169653b9d497424cdd
parentc5d7e040522d247e050f04d474f3bb3a1961373a
Load from the GOT for external symbols in the large, PIC code model

Do the same handling for external symbols that we do for jump table
symbols and global values.

Fixes one of the cases in PR38385

llvm-svn: 338651
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/code-model-elf-memset.ll [new file with mode: 0644]