aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp
diff options
context:
space:
mode:
authorJack Carter <jcarter@mips.com>2013-02-05 09:30:03 +0000
committerJack Carter <jcarter@mips.com>2013-02-05 09:30:03 +0000
commit7304702ef99f98897d15baae0eede55f294bc602 (patch)
tree750793287d42bb3070187a37950417ce33c547a7 /lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp
parent37ef65b9c1b93c386d13089d9ace6a1cc00e82dc (diff)
downloadexternal_llvm-7304702ef99f98897d15baae0eede55f294bc602.zip
external_llvm-7304702ef99f98897d15baae0eede55f294bc602.tar.gz
external_llvm-7304702ef99f98897d15baae0eede55f294bc602.tar.bz2
This patch that sets the Mips ELF header flag for
MicroMips architectures. Contributer: Zoran Jovanovic git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174360 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp')
-rw-r--r--lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp b/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp
index 89891ff..9c454d6 100644
--- a/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp
+++ b/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)