| commit | c9f29c62ccfc076a5c821d61671705d2dd7ff8dc | [log] [tgz] |
|---|---|---|
| author | Diana Picus <diana.picus@linaro.org> | Tue Aug 29 09:47:55 2017 +0000 |
| committer | Diana Picus <diana.picus@linaro.org> | Tue Aug 29 09:47:55 2017 +0000 |
| tree | 1cf10ed1c77e9c75933245f7eb8df3cdbe288340 | |
| parent | d8132c303e1bc31908ed01b3b024130f8a118a97 [diff] |
[ARM] GlobalISel: Select globals in PIC mode Support the selection of G_GLOBAL_VALUE in the PIC relocation model. For simplicity we use the same pseudoinstructions for both Darwin and ELF: (MOV|LDRLIT)_ga_pcrel(_ldr). This is new for ELF, so it requires a small update to the ARM pseudo expansion pass to make sure it adds the correct constant pool modifier and add-current-address in the case of ELF. Differential Revision: https://reviews.llvm.org/D36507 llvm-svn: 311992