This is an archive of the discontinued LLVM Phabricator instance.

[mips] Add custom MCELFStreamer.
ClosedPublic

Authored by matheusalmeida on Mar 20 2014, 7:04 AM.

Details

Summary

Add 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.

Diff Detail

Event Timeline

jacksprat accepted this revision.Mar 20 2014, 10:10 AM

Great idea!

Closed by commit rL204917 (authored by @matheusalmeida).