OSDN Git Service

[mips] Implement the ".rdata" MIPS assembly directive.
authorSimon Dardis <simon.dardis@imgtec.com>
Thu, 22 Jun 2017 10:41:51 +0000 (10:41 +0000)
committerSimon Dardis <simon.dardis@imgtec.com>
Thu, 22 Jun 2017 10:41:51 +0000 (10:41 +0000)
commit00619943f0910f485f2fdb8f9563d840f0127c1b
tree4e02020e0bee1eb524b6149f4d38dd8d10dd1b6b
parent5ffaf3e12f2d8ab0238d0a5202a35d9032567e3e
[mips] Implement the ".rdata" MIPS assembly directive.

Rather than creating a separate ".rdata" section distinct from the
customary ".rodata" in ELF, ".rdata" switches to the ".rodata" section.

This patch relands r305949 and r305950 with the correct commit message
and addresses nit raised during review.

Patch By: John Baldwin!

Differential Revision: https://reviews.llvm.org/D34452

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305995 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
test/MC/Mips/mips-rdata.s [new file with mode: 0644]