Page MenuHomePhabricator

[mips] Fix an initialization issue with MipsABIInfo in MipsTargetELFStreamer

Authored by sdardis on Dec 21 2016, 9:08 AM.



DebugInfoDWARFTests is the only user so far which initializes the
MCObjectStreamer without initializing the ASMParser. The MIPS backend
relies on the ASMParser to initialize the MipsABIInfo object and to
update the target streamer with it. This should turn the mips buildbots

Diff Detail


Event Timeline

sdardis updated this revision to Diff 82238.Dec 21 2016, 9:08 AM
sdardis retitled this revision from to [mips] Fix an initialization issue with MipsABIInfo in MipsTargetELFStreamer.
sdardis updated this object.
sdardis added reviewers: atanasyan, zoran.jovanovic.
sdardis set the repository for this revision to rL LLVM.
sdardis added a subscriber: llvm-commits.

I've tested this on a mips board, it can also be tested locally by modifying DWARFDebugInfoTest.cpp:getHostTripleForAddrSize to use "mipsel-unknown-linux-gnu" instead of LLVM_HOST_TRIPLE.

This revision is now accepted and ready to land.Feb 1 2017, 6:57 AM
This revision was automatically updated to reflect the committed changes.