aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/AArch64/AArch64InstrInfo.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/Target/AArch64/AArch64InstrInfo.cpp b/lib/Target/AArch64/AArch64InstrInfo.cpp
index 269029ffce8..14c18305536 100644
--- a/lib/Target/AArch64/AArch64InstrInfo.cpp
+++ b/lib/Target/AArch64/AArch64InstrInfo.cpp
@@ -1607,13 +1607,8 @@ bool AArch64InstrInfo::expandPostRAPseudo(MachineInstr &MI) const {
const unsigned char MO_NC = AArch64II::MO_NC;
if ((OpFlags & AArch64II::MO_GOT) != 0) {
- if (TM.getCodeModel() == CodeModel::Tiny) {
- BuildMI(MBB, MI, DL, get(AArch64::LDRXl), Reg)
- .addGlobalAddress(GV, 0, AArch64II::MO_GOT);
- } else {
- BuildMI(MBB, MI, DL, get(AArch64::LOADgot), Reg)
- .addGlobalAddress(GV, 0, AArch64II::MO_GOT);
- }
+ BuildMI(MBB, MI, DL, get(AArch64::LOADgot), Reg)
+ .addGlobalAddress(GV, 0, AArch64II::MO_GOT);
BuildMI(MBB, MI, DL, get(AArch64::LDRXui), Reg)
.addReg(Reg, RegState::Kill)
.addImm(0)