We need to propagate the debug location information even when dealing with the
[oota-llvm.git] / lib / Target / Mips / MipsSubtarget.cpp
index 530920b03c32a40bfa2944aaba1403abb0690921..48f58a55aadafbdbbbd0d8bed77c805aab4d0ea0 100644 (file)
@@ -65,9 +65,9 @@ MipsSubtarget::MipsSubtarget(const TargetMachine &TM, const Module &M,
     HasCondMov = true;
   }
 
-  // Abicall is the default for O32 ABI and is ignored 
-  // for EABI.
-  if (NotABICall || isABI_EABI())
+  // Abicall is the default for O32 ABI, but is disabled within EABI and in
+  // static code.
+  if (NotABICall || isABI_EABI() || (TM.getRelocationModel() == Reloc::Static))
     HasABICall = false;
 
   // TODO: disable when handling 64 bit symbols in the future.