This is an archive of the discontinued LLVM Phabricator instance.

Use Backend_EmitMCNull for null codegen unit tests.
ClosedPublic

Authored by dlj on Feb 18 2016, 11:49 AM.

Details

Summary

Using Backend_EmitLL attemps to create a file with an empty filename.
This is problematic in certain environments: an empty filename may be
illegal, or the default output path may not be writable (in the case
where an empty filename would otherwise have some non-failing
semantics). This patch switches to use Backend_EmitMCNull, which
allows CodeGen to run, but does not attempt to create or write an
output file.

Diff Detail

Repository
rL LLVM

Event Timeline

dlj updated this revision to Diff 48380.Feb 18 2016, 11:49 AM
dlj retitled this revision from to Use Backend_EmitMCNull for null codegen unit tests..
dlj updated this object.
dlj added a subscriber: cfe-commits.
rsmith accepted this revision.Feb 18 2016, 12:08 PM
rsmith added a reviewer: rsmith.
rsmith added a subscriber: rsmith.

LGTM

This revision is now accepted and ready to land.Feb 18 2016, 12:08 PM
This revision was automatically updated to reflect the committed changes.