This is an archive of the discontinued LLVM Phabricator instance.

LLD: COFF: Check for incompatible machine types
ClosedPublic

Authored by ruiu on Jul 7 2015, 3:06 PM.

Details

Reviewers
pcc

Diff Detail

Event Timeline

ruiu updated this revision to Diff 29217.Jul 7 2015, 3:06 PM
ruiu retitled this revision from to LLD: COFF: Check for incompatible machine types.
ruiu updated this object.
ruiu added a reviewer: pcc.
ruiu added a subscriber: llvm-commits.
pcc added inline comments.Jul 7 2015, 4:11 PM
test/COFF/machine.test
21

This test does not use %t.obj. Did you intend to add another test here for the non-/machine case?

ruiu added inline comments.Jul 7 2015, 4:13 PM
test/COFF/machine.test
21

That's a mistake. I intended to use %t.obj instead of ret42.obj.

pcc accepted this revision.Jul 7 2015, 4:30 PM
pcc edited edge metadata.

LGTM with this change

test/COFF/machine.test
21

Can you add another test that shows that we diagnose machine type conflicts between files without a /machine flag?

This revision is now accepted and ready to land.Jul 7 2015, 4:30 PM
ruiu added inline comments.Jul 7 2015, 4:32 PM
test/COFF/machine.test
21

Sure, I will.

Eugene.Zelenko added a subscriber: Eugene.Zelenko.

Committed in r241647.