summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-06-04 02:32:20 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-06-04 02:32:20 +0000
commitd31203ae218637b8bb44824c9a7c63b1241fee8a (patch)
tree175660a504c8433606daa1781ed16d4baa9ecb32 /llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp
parenteb262ce4b63e76a70d95fef83ef55c9d222a3007 (diff)
downloadbcm5719-llvm-d31203ae218637b8bb44824c9a7c63b1241fee8a.tar.gz
bcm5719-llvm-d31203ae218637b8bb44824c9a7c63b1241fee8a.zip
Pack the MCSymbolELF bit fields into MCSymbol's Flags.
This reduces MCSymolfELF from 64 bytes to 56 bytes on x86_64. While at it, also make getOther/setOther easier to use by accepting unshifted STO_* values. llvm-svn: 239006
Diffstat (limited to 'llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp')
-rw-r--r--llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp b/llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp
index d1e3a47f94b..b45d9cf621d 100644
--- a/llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp
+++ b/llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp
@@ -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);
}
}
OpenPOWER on IntegriCloud