Implement the missing bits corresponding to .mips_hack_elf_flags.
authorRafael Espindola <rafael.espindola@gmail.com>
Sun, 26 Jan 2014 06:57:13 +0000 (06:57 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sun, 26 Jan 2014 06:57:13 +0000 (06:57 +0000)
commit5356e75b5b764fda2ab4e7f171180032be45632a
tree0519206e81056cb32f90d58a7b87d8a32c92f7f4
parent550d791907b445b1c01680bbd1a50bf0630218a0
Implement the missing bits corresponding to .mips_hack_elf_flags.

These were:
* noreorder handling on the target object streamer and asm parser.
* setting the initial flag bits based on the enabled features.
* setting the elf header flag for micromips

It is *really* depressing I am the one doing this instead of someone at
mips actually taking the time to understand the infrastructure.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200138 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/llvm/Support/ELF.h
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp
lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
lib/Target/Mips/MipsAsmPrinter.cpp
lib/Target/Mips/MipsTargetStreamer.h
test/CodeGen/Mips/elf_eflags.ll
test/MC/Mips/elf_eflags.s
test/MC/Mips/elf_eflags_abicalls.s [new file with mode: 0644]
test/MC/Mips/elf_eflags_micromips.s [new file with mode: 0644]
test/MC/Mips/elf_eflags_mips16.s [new file with mode: 0644]
test/MC/Mips/elf_eflags_noreorder.s [new file with mode: 0644]
test/MC/Mips/elf_eflags_pic0.s [new file with mode: 0644]