This patch that sets the Mips ELF header flag for
[oota-llvm.git] / lib / Target / Mips / MCTargetDesc / MipsELFStreamer.cpp
index 89891ff7f9373cb1fb967091586293f9a94909a8..9c454d6169358b87925b0e5b921bf7c568a7150b 100644 (file)
@@ -45,6 +45,9 @@ namespace llvm {
     else
       EFlags |= ELF::EF_MIPS_ARCH_32;
 
+    if (Subtarget.inMicroMipsMode())
+      EFlags |= ELF::EF_MIPS_MICROMIPS;
+
     // Relocation Model
     Reloc::Model RM = Subtarget.getRelocationModel();
     if (RM == Reloc::PIC_ || RM == Reloc::Default)