projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
This patch that sets the Mips ELF header flag for
[oota-llvm.git]
/
lib
/
Target
/
Mips
/
MCTargetDesc
/
MipsELFStreamer.cpp
diff --git
a/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp
b/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp
index 89891ff7f9373cb1fb967091586293f9a94909a8..9c454d6169358b87925b0e5b921bf7c568a7150b 100644
(file)
--- 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)