diff options
author | Jack Carter <jcarter@mips.com> | 2013-02-05 09:30:03 +0000 |
---|---|---|
committer | Jack Carter <jcarter@mips.com> | 2013-02-05 09:30:03 +0000 |
commit | 428a06cc7521d64429ea3ca8e5515286cdca53b8 (patch) | |
tree | 7cf06a92b68e843ef8fa2963ff9a35718fece730 /llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp | |
parent | 49c04467eaa7a81c1a32eb4087e58cb36b1adc79 (diff) | |
download | bcm5719-llvm-428a06cc7521d64429ea3ca8e5515286cdca53b8.tar.gz bcm5719-llvm-428a06cc7521d64429ea3ca8e5515286cdca53b8.zip |
This patch that sets the Mips ELF header flag for
MicroMips architectures.
Contributer: Zoran Jovanovic
llvm-svn: 174360
Diffstat (limited to 'llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp b/llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp index 89891ff7f93..9c454d61693 100644 --- a/llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp +++ b/llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp @@ -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) |