This is a resubmittal. For some reason it broke the bots yesterday
authorJack Carter <jcarter@mips.com>
Fri, 18 Jan 2013 21:20:38 +0000 (21:20 +0000)
committerJack Carter <jcarter@mips.com>
Fri, 18 Jan 2013 21:20:38 +0000 (21:20 +0000)
commitc91cbb9b0c90a480299cc7deaef166d47a61d9df
treea1c7e0c758d24f4fbae2e03f23bc601c4a29faed
parent82d3d4524f2595b2dce617e963b6d67876b4f9ba
This is a resubmittal. For some reason it broke the bots yesterday
but I cannot reproduce the problem and have scrubed my sources and
even tested with llvm-lit -v --vg.
Support for Mips register information sections.

Mips ELF object files have a section that is dedicated
to register use info. Some of this information such as
the assumed Global Pointer value is used by the linker
in relocation resolution.

The register info file is .reginfo in o32 and .MIPS.options
in 64 and n32 abi files.

This patch contains the changes needed to create the sections,
but leaves the actual register accounting for a future patch.

Contributer: Jack Carter

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172847 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/ELF.h
lib/MC/ELFObjectWriter.cpp
lib/Target/Mips/MCTargetDesc/CMakeLists.txt
lib/Target/Mips/MCTargetDesc/MipsReginfo.cpp [new file with mode: 0644]
lib/Target/Mips/MCTargetDesc/MipsReginfo.h [new file with mode: 0644]
lib/Target/Mips/MipsAsmPrinter.cpp
lib/Target/Mips/MipsAsmPrinter.h
lib/Target/Mips/MipsSubtarget.h
lib/Target/Mips/MipsTargetObjectFile.cpp
lib/Target/Mips/MipsTargetObjectFile.h
test/MC/Mips/elf-reginfo.ll [new file with mode: 0644]