summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-06-04 05:00:12 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-06-04 05:00:12 +0000
commita86ecee52ba011fc16a4cac338bf2a7015becb2a (patch)
tree993f2c4a0ca9d387df188ef776edefe1961d1a29 /llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp
parent4c5901eefc7f22fe5e789535b783235d8c6e77ba (diff)
downloadbcm5719-llvm-a86ecee52ba011fc16a4cac338bf2a7015becb2a.tar.gz
bcm5719-llvm-a86ecee52ba011fc16a4cac338bf2a7015becb2a.zip
Revert "Pack the MCSymbolELF bit fields into MCSymbol's Flags."
This reverts commit r239006. I am debugging the powerpc failures. llvm-svn: 239010
Diffstat (limited to 'llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp')
-rw-r--r--llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp b/llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp
index b45d9cf621d..d1e3a47f94b 100644
--- a/llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp
+++ b/llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp
@@ -44,7 +44,10 @@ void MipsELFStreamer::createPendingLabelRelocs() {
for (auto *L : Labels) {
auto *Label = cast<MCSymbolELF>(L);
getAssembler().registerSymbol(*Label);
- Label->setOther(ELF::STO_MIPS_MICROMIPS);
+ // 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);
}
}
OpenPOWER on IntegriCloud