This reverts commit r200064 and r200051.
authorRafael Espindola <rafael.espindola@gmail.com>
Sat, 25 Jan 2014 15:06:56 +0000 (15:06 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sat, 25 Jan 2014 15:06:56 +0000 (15:06 +0000)
commit86b535b085e4ea3f8d1ea759f2610dd15ac26d94
treebe33277455519f7c1289f77fabd56d6d6689c908
parent754b83a51a89a2a8563563aae756ce86c55b684c
This reverts commit r200064 and r200051.

r200064 depends on r200051.

r200051 is broken: I tries to replace .mips_hack_elf_flags, which is a good
thing, but what it replaces it with is even worse.

The new emitMipsELFFlags it adds corresponds to no assembly directive, is not
marked as a hack and is not even printed to the .s file.

The patch also introduces more uses of hasRawTextSupport.

The correct way to remove .mips_hack_elf_flags is to have the mips target
streamer handle the default flags (and command line options). That way the
same code path is used for asm and obj. The streamer interface should *really*
correspond to what is printed in the .s file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200078 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/CodeGen/Mips/elf_eflags.ll [deleted file]
test/CodeGen/Mips/elf_st_other.ll [deleted file]
test/MC/Mips/elf_eflags.ll [new file with mode: 0644]
test/MC/Mips/elf_eflags.s
test/MC/Mips/elf_st_other.ll [new file with mode: 0644]