OSDN Git Service

For mips64 switch statements in subroutines could generate
authorJack Carter <jcarter@mips.com>
Wed, 22 Aug 2012 00:49:30 +0000 (00:49 +0000)
committerJack Carter <jcarter@mips.com>
Wed, 22 Aug 2012 00:49:30 +0000 (00:49 +0000)
commit101771ba4d9c2421f836069fcedf9ddc8a0c9dc7
tree1f743fb5f09df0548a3df1224fd0ad863cb4877a
parentcb1f68d7c8bea99530ba55813c2b4ddd14556286
For mips64 switch statements in subroutines could generate
within the codegen EK_GPRel64BlockAddress. This was not
supported for direct object output and resulted in an assertion.

This change adds support for EK_GPRel64BlockAddress for
direct object.

One fallout from this is to turn on rela relocations
for mips64 to match gas.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162334 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCObjectStreamer.h
lib/MC/MCObjectStreamer.cpp
lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp
test/MC/Mips/do_switch.ll [new file with mode: 0644]