[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 llvm-svn: 204917
Showing
- llvm/lib/Target/Mips/MCTargetDesc/CMakeLists.txt 1 addition, 0 deletionsllvm/lib/Target/Mips/MCTargetDesc/CMakeLists.txt
- llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp 19 additions, 0 deletionsllvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp
- llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.h 43 additions, 0 deletionsllvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.h
- llvm/lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp 3 additions, 1 deletionllvm/lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp
Loading
Please register or sign in to comment