Bring back r239006 with a fix.
[oota-llvm.git] / lib / Target / Mips / MCTargetDesc / MipsELFStreamer.cpp
index d1e3a47f94b2636ffbf3591425b75d9ee2d0b0eb..b45d9cf621d74c6cc68641a4c4771e06e665a531 100644 (file)
@@ -44,10 +44,7 @@ void MipsELFStreamer::createPendingLabelRelocs() {
     for (auto *L : Labels) {
       auto *Label = cast<MCSymbolELF>(L);
       getAssembler().registerSymbol(*Label);
-      // The "other" values are stored in the last 6 bits of the second byte.
-      // The traditional defines for STO values assume the full byte and thus
-      // the shift to pack it.
-      Label->setOther(ELF::STO_MIPS_MICROMIPS >> 2);
+      Label->setOther(ELF::STO_MIPS_MICROMIPS);
     }
   }