[Mips] TargetStreamer ELF flag Support for default and commandline options.
authorJack Carter <jack.carter@imgtec.com>
Sat, 25 Jan 2014 00:24:07 +0000 (00:24 +0000)
committerJack Carter <jack.carter@imgtec.com>
Sat, 25 Jan 2014 00:24:07 +0000 (00:24 +0000)
commit998052555a65c42ac3cecc9262ef6bb31ea56ee8
treeb14b91dcbd91bf7087a90d7241d8cdc651295b9f
parentf1f5a434ad9319195eeaf4a4f36d8a6ce085a7b3
[Mips] TargetStreamer ELF flag Support for default and commandline options.

This patch uses a common MipsTargetSteamer interface for both
MipsAsmPrinter and MipsAsmParser for recording default and commandline
driven directives that affect ELF header flags.

It has been noted that the .ll tests affected by this patch belong in
test/Codegen/Mips. I will move them in a separate patch.

Also, a number of directives do not get expressed by AsmPrinter in the
resultant .s assembly such as setting the correct ASI. I have noted this
in the tests and they will be addressed in later patches.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200051 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
lib/Target/Mips/MipsAsmPrinter.cpp
lib/Target/Mips/MipsAsmPrinter.h
lib/Target/Mips/MipsTargetStreamer.h
test/MC/Mips/elf_eflags.ll
test/MC/Mips/elf_eflags.s
test/MC/Mips/elf_st_other.ll