This is an archive of the discontinued LLVM Phabricator instance.

Don't change the selected platform when creating the dummy target.
ClosedPublic

Authored by flackr on May 12 2015, 11:56 AM.

Details

Summary

A dummy target is used by TargetList::CreateTargetInternal to prime newly created targets. the first time this is done it creates the dummy target. The dummy target is created with the host platform (See TargetList::CreateDummyTarget) which results in switching the selected platform back to the host platform even when creating a target for a different platform. This change avoids changing the selected platform while creating the dummy target to prevent this side effect.

Diff Detail

Repository
rL LLVM

Event Timeline

flackr updated this revision to Diff 25606.May 12 2015, 11:56 AM
flackr retitled this revision from to Don't change the selected platform when creating the dummy target..
flackr updated this object.
flackr edited the test plan for this revision. (Show Details)
flackr added reviewers: tberghammer, clayborg.
flackr set the repository for this revision to rL LLVM.
flackr added a subscriber: Unknown Object (MLST).
clayborg accepted this revision.May 12 2015, 1:30 PM
clayborg edited edge metadata.

Looks good.

This revision is now accepted and ready to land.May 12 2015, 1:30 PM
This revision was automatically updated to reflect the committed changes.