This is an archive of the discontinued LLVM Phabricator instance.

[tools] Mark output of tools as text if it is really text
ClosedPublic

Authored by abhina.sreeskantharajan on Jan 8 2021, 8:21 AM.

Details

Summary

This is a continuation of https://reviews.llvm.org/D67696. The following tools also need to set the OF_Text flag correctly.

  • llvm-profdata
  • llvm-link

Diff Detail

Event Timeline

abhina.sreeskantharajan requested review of this revision.Jan 8 2021, 8:21 AM
abhina.sreeskantharajan created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJan 8 2021, 8:21 AM
rnk added a comment.Jan 8 2021, 11:16 AM

Please fix the two test failures observed in the harbormaster output. Your change will cause these tools to produce CRLF output, which tests must account for.

Use diff -B to ignore extra blank lines.

Sorry, I wasn't aware Windows didn't support "diff -B". I will try "diff -b" which appears in other lit tests.

rnk accepted this revision.Jan 11 2021, 12:08 PM

lgtm

This revision is now accepted and ready to land.Jan 11 2021, 12:08 PM