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)
commitc1b17ed2e19af409f59d05f8ebeb33611ec69d58
tree45db329450f6480d453804becb6f42f6acbb16cd
parentc4cabef7823177f6e21bfd4207490b2543609208
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

llvm-svn: 172847
llvm/include/llvm/Support/ELF.h
llvm/lib/MC/ELFObjectWriter.cpp
llvm/lib/Target/Mips/MCTargetDesc/CMakeLists.txt
llvm/lib/Target/Mips/MCTargetDesc/MipsReginfo.cpp [new file with mode: 0644]
llvm/lib/Target/Mips/MCTargetDesc/MipsReginfo.h [new file with mode: 0644]
llvm/lib/Target/Mips/MipsAsmPrinter.cpp
llvm/lib/Target/Mips/MipsAsmPrinter.h
llvm/lib/Target/Mips/MipsSubtarget.h
llvm/lib/Target/Mips/MipsTargetObjectFile.cpp
llvm/lib/Target/Mips/MipsTargetObjectFile.h
llvm/test/MC/Mips/elf-reginfo.ll [new file with mode: 0644]