Mips direct object exception handling regression
[oota-llvm.git] / lib / MC / MCObjectFileInfo.cpp
index bafa002e3d4482ead9f396db311f01c93dee98ac..0d32ad40e806c47858a70b498d9106e40b79e23f 100644 (file)
@@ -223,9 +223,10 @@ void MCObjectFileInfo::InitMachOMCObjectFileInfo(Triple T) {
 }
 
 void MCObjectFileInfo::InitELFMCObjectFileInfo(Triple T) {
-  // FIXME: Check this. Mips64el is using the base values, which is most likely
-  // incorrect.
-  if (T.getArch() != Triple::mips64el)
+  if (T.getArch() != Triple::mips &&
+      T.getArch() != Triple::mipsel &&
+      T.getArch() != Triple::mips64 &&
+      T.getArch() != Triple::mips64el )
     FDECFIEncoding = dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4;
 
   if (T.getArch() == Triple::x86) {