This is an archive of the discontinued LLVM Phabricator instance.

[ThinLTO] Fix .llvmcmd emission
ClosedPublic

Authored by mtrofin on Oct 27 2020, 6:21 PM.

Details

Summary

llvm::EmbedBitcodeInModule needs (what used to be called) EmbedMarker
set, in order to emit .llvmcmd. EmbedMarker is really about embedding the
command line, so renamed the parameter accordingly, too.

This was not caught at test because the check-prefix was incorrect, but
FileCheck does not report that when multiple prefixes are provided. A
separate patch will address that.

Diff Detail

Event Timeline

mtrofin created this revision.Oct 27 2020, 6:21 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptOct 27 2020, 6:21 PM
mtrofin requested review of this revision.Oct 27 2020, 6:21 PM
tejohnson accepted this revision.Oct 28 2020, 11:13 AM

LGTM but is there a functional reason why CmdArgs was changed to be passed by reference? If just generic cleanup might be better to split up that into a separate commit.

This revision is now accepted and ready to land.Oct 28 2020, 11:13 AM
mtrofin added a comment.EditedOct 28 2020, 11:14 AM

LGTM but is there a functional reason why CmdArgs was changed to be passed by reference? If just generic cleanup might be better to split up that into a separate commit.

It avoids having to also check if that thing's null. I can do that first as a NFC and re-sync.

This revision was landed with ongoing or failed builds.Oct 28 2020, 5:57 PM
This revision was automatically updated to reflect the committed changes.