This is an archive of the discontinued LLVM Phabricator instance.

Introduce Target::createNullTargetStreamer and use it from IRObjectFile.
ClosedPublic

Authored by pcc on Feb 17 2015, 5:38 PM.

Details

Summary

A null MCTargetStreamer allows IRObjectFile to ignore target-specific
directives. Previously we were crashing.

Diff Detail

Repository
rL LLVM

Event Timeline

pcc updated this revision to Diff 20129.Feb 17 2015, 5:38 PM
pcc retitled this revision from to Introduce Target::createNullTargetStreamer and use it from IRObjectFile..
pcc updated this object.
pcc edited the test plan for this revision. (Show Details)
pcc added a reviewer: rafael.
pcc added a subscriber: Unknown Object (MLST).
rafael accepted this revision.Feb 18 2015, 1:54 PM
rafael edited edge metadata.

With this TargetRegistry::RegisterNullStreamer becomes redundant, no? It will always be llvm::createNullStreamer + the new hook.

If so, please add a FIXME about it.

include/llvm/Support/TargetRegistry.h
465 ↗(On Diff #20129)

nullptr

This revision is now accepted and ready to land.Feb 18 2015, 1:54 PM
This revision was automatically updated to reflect the committed changes.
pcc added a comment.Feb 18 2015, 4:47 PM

With this TargetRegistry::RegisterNullStreamer becomes redundant, no? It will always be llvm::createNullStreamer + the new hook.

If so, please add a FIXME about it.

Correct. It was simple enough to remove the hook though, which I did in r229799.

include/llvm/Support/TargetRegistry.h
465 ↗(On Diff #20129)

Done