[mips] Implement custom MCELFStreamer.
authorMatheus Almeida <matheus.almeida@imgtec.com>
Thu, 27 Mar 2014 11:39:03 +0000 (11:39 +0000)
committerMatheus Almeida <matheus.almeida@imgtec.com>
Thu, 27 Mar 2014 11:39:03 +0000 (11:39 +0000)
commit7123b1a43eeed99064bfccef7e325493508b4139
treec9412ece18b945b97041fedbf7edad8080499cdb
parentc112990260027001b82305f9ca50440a5ff469c1
[mips] Implement custom MCELFStreamer.

This allows us to insert some hooks before emitting data into an actual object file.
For example, we can capture the register usage for a translation unit by overriding
the EmitInstruction method. The register usage information is needed to generate
.reginfo and .Mips.options ELF sections.

No functional changes.

Differential Revision: http://llvm-reviews.chandlerc.com/D3129

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204917 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MCTargetDesc/CMakeLists.txt
lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp [new file with mode: 0644]
lib/Target/Mips/MCTargetDesc/MipsELFStreamer.h [new file with mode: 0644]
lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp